% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formula-helpers.R
\name{.hzr_parse_formula}
\alias{.hzr_parse_formula}
\title{Parse Surv() formula for hazard modeling}
\usage{
.hzr_parse_formula(formula, data)
}
\arguments{
\item{formula}{A formula object with Surv() on the LHS.}

\item{data}{A data frame containing variables referenced in the formula.}
}
\value{
A list with elements: time, status, time_lower, time_upper, x
}
\description{
Extracts time, status, time_lower, time_upper, and predictors from a formula
of the form \code{Surv(time, status) ~ x1 + x2 + ...}.
Supports right-censored, left-censored, interval-censored, and
counting-process (start-stop) data.
}
\details{
For counting-process (start-stop) data, use \code{Surv(start, stop, event)}.
The start times are returned as \code{time_lower} and stop times as \code{time},
enabling the likelihood to compute \code{H(stop) - H(start)} per epoch.
}
\keyword{internal}
