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

\item{predictors}{Character vector of predictor variable names.}
}
\value{
Invisible \code{TRUE} if validation passes, otherwise stops with error.
}
\description{
Checks that all specified predictor variables exist in the dataset. Handles
interaction terms (splits on ":"), mixed-effects random effects (ignores
"|" syntax), and raises informative errors for missing variables.
}
\keyword{internal}
