% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_logistic.R
\name{validate_binary_response}
\alias{validate_binary_response}
\title{Validate that a response vector is suitable for binary logistic regression}
\usage{
validate_binary_response(y)
}
\arguments{
\item{y}{A numeric, logical, or factor vector.}
}
\value{
Invisibly \code{TRUE} when validation passes.
}
\description{
Stops with an informative error when \code{y} is a factor with more than two
levels.  Passes through numeric 0/1 vectors and two-level factors unchanged.
}
\keyword{internal}
