| predictCoefficients | R Documentation |
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)
model |
An object of class "cnormBetaBinomial". |
ages |
A numeric vector of age points at which to make predictions. |
n |
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.
A data frame with columns:
age |
The input age points |
mu |
Predicted mean values |
sigma |
Predicted standard deviation values |
a |
Alpha parameters |
b |
Beta parameters |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.