% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/m2dt_utils.R
\name{get_event_variable}
\alias{get_event_variable}
\title{Extract event variable from survival model}
\usage{
get_event_variable(model, model_class)
}
\arguments{
\item{model}{Fitted survival model object.}

\item{model_class}{Character string of the model class.}
}
\value{
Character string naming the event variable, or \code{NULL} if not found.
}
\description{
Parses the Surv() expression in survival model formulas to extract
the event/status variable name. Works with coxph, clogit, and coxme models.
}
\keyword{internal}
