% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/betaBinomial.R
\name{bb_prepare_data}
\alias{bb_prepare_data}
\title{Validate and clean age / score / weights input}
\usage{
bb_prepare_data(age, score, weights = NULL)
}
\arguments{
\item{age}{Numeric vector of predictor values.}

\item{score}{Numeric vector of response values.}

\item{weights}{Optional numeric vector of weights.}
}
\value{
A list with the (possibly filtered) elements age, score, weights.
}
\description{
Performs the shared input validation for the beta-binomial fitting
functions: length checks, removal of non-finite cases, weight validation,
and checks for negative or non-integer scores as well as degenerate
predictor variance.
}
\keyword{internal}
