% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit_utils.R
\name{validate_outcome_exists}
\alias{validate_outcome_exists}
\title{Validate outcome exists in data}
\usage{
validate_outcome_exists(data, outcome)
}
\arguments{
\item{data}{Data frame or data.table to check.}

\item{outcome}{Character string outcome specification (may include Surv()).}
}
\value{
Invisible \code{TRUE} if validation passes, otherwise stops with error.
}
\description{
Checks that the specified outcome variable (or survival variables within
Surv() expression) exists in the dataset. Raises informative error if
variables are missing. Handles both simple outcomes and Surv() expressions.
}
\keyword{internal}
