% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m2dt_utils.R
\name{get_model_variables}
\alias{get_model_variables}
\title{Identify the variables required by a fitted model}
\usage{
get_model_variables(model, model_class)
}
\arguments{
\item{model}{Fitted model object.}

\item{model_class}{Character string of the model class.}
}
\value{
Character vector of variable names, or \code{character(0)} when the
  formula cannot be recovered.
}
\description{
Returns the names of every variable referenced by a model formula, including
the response, stratification factors, offsets and random-effect grouping
factors. Terms are expanded where possible, so a model specified with a dot
on the right-hand side (\emph{e.g.,} \code{y ~ .}) returns the complete set
of variables rather than the literal dot.
}
\keyword{internal}
