% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m2dt_utils.R
\name{get_model_nobs}
\alias{get_model_nobs}
\title{Number of observations used to fit a model}
\usage{
get_model_nobs(model, model_class)
}
\arguments{
\item{model}{Fitted model object.}

\item{model_class}{Character string of the model class.}
}
\value{
Numeric scalar giving the number of observations used in fitting, or
  \code{NA_real_} when it cannot be determined.
}
\description{
Provides a single accessor for the fitted sample size across the model
classes supported by \pkg{summata}. Survival models record this quantity in
class-specific components rather than through \code{stats::nobs()}.
}
\keyword{internal}
