This function generates predictions from a fitted beta binomial regression model (mode 1) for new age points and converts them into alpha and beta parameters of the beta-binomial distribution via method of moments.
predictCoefficients(model, ages, n = NULL)A data frame with columns:
The input age points
Predicted mean values
Predicted standard deviation values
Alpha parameters
Beta parameters
An object of class "cnormBetaBinomial".
A numeric vector of age points at which to make predictions.
The maximum score to be achieved.
The function applies the same standardization used in model fitting, generates predictions on the standardized scale, and transforms these back to the original scale. If the method of moments yields invalid (i.e. non-positive or non-finite) parameters, a mean-preserving low-precision fallback is used instead of arbitrarily clamping both parameters.