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.
bb_prepare_data(age, score, weights = NULL)A list with the (possibly filtered) elements age, score, weights.
Numeric vector of predictor values.
Numeric vector of response values.
Optional numeric vector of weights.