% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit_utils.R
\name{detect_outcome_type}
\alias{detect_outcome_type}
\title{Detect outcome type from data}
\usage{
detect_outcome_type(data, outcome)
}
\arguments{
\item{data}{Data frame or data.table containing the outcome variable.}

\item{outcome}{Character string naming the outcome variable.}
}
\value{
Character string: "binary", "continuous", "count", or "unknown".
}
\description{
Automatically determines whether an outcome variable is binary, continuous,
or count-based by examining the data values. Used for automatic model type
selection and validation. Binary outcomes have 2 unique values, continuous
have many values or non-integers, counts have integers >= 0.
}
\keyword{internal}
