% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit_utils.R
\name{validate_fit_inputs}
\alias{validate_fit_inputs}
\title{Complete input validation for fit functions}
\usage{
validate_fit_inputs(
  data,
  outcome,
  predictors,
  model_type,
  family = NULL,
  conf_level = 0.95,
  digits = 2,
  p_digits = 3,
  p_threshold = NULL,
  auto_correct_model = TRUE
)
}
\arguments{
\item{data}{Data frame or data.table containing all variables.}

\item{outcome}{Character string outcome specification (may include Surv()).}

\item{predictors}{Character vector of predictor variable names.}

\item{model_type}{Character string model type to validate.}

\item{family}{GLM family object, function, or string if applicable.}

\item{conf_level}{Numeric confidence level (must be between 0 and 1).}

\item{digits}{Integer number of decimal places for effect estimates.}

\item{p_digits}{Integer number of decimal places for \emph{p}-values.}

\item{p_threshold}{Numeric \emph{p}-value threshold for significance highlighting.}

\item{auto_correct_model}{Logical whether to auto-correct model type mismatches.}
}
\value{
List with validated model_type, family, auto_corrected flag.
}
\description{
Master validation function called by fit(), uniscreen(), fullfit(). Performs
comprehensive checks on data structure, variable existence, numeric parameter
ranges, and model-outcome consistency. Returns validated parameters with
auto-corrections applied when appropriate.
}
\keyword{internal}
