% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_logistic.R
\name{standardize_logistic_response}
\alias{standardize_logistic_response}
\title{Coerce a binary response to a numeric 0/1 integer vector}
\usage{
standardize_logistic_response(y)
}
\arguments{
\item{y}{A numeric, logical, or factor vector.}
}
\value{
An integer vector of 0s and 1s.
}
\description{
Converts logical and two-level factor responses to 0/1 integer.
Numeric 0/1 vectors are returned unchanged.
Factors with more than two levels raise an error via
\code{validate_binary_response()}.
}
\keyword{internal}
