predictCoefficients2 function

Predict alpha and beta parameters for a beta-binomial regression model

Predict alpha and beta parameters for a beta-binomial regression model

This function generates predictions from a fitted beta-binomial regression model for new age points.

predictCoefficients2(model, ages, n = NULL)

Arguments

  • model: An object of class "cnormBetaBinomial2", typically the result of a call to cnorm.betabinomial2().
  • ages: A numeric vector of age points at which to make predictions.
  • n: The maximum score to be achieved.

Returns

A data frame with columns: - age: The input age points

  • a: Predicted alpha values

  • b: Predicted beta values

  • mu: Predicted mean values

  • sigma: Predicted standard deviation values

Details

This function takes a fitted beta-binomial regression model and generates predictions for new age points. It applies the same standardization used in model fitting, generates predictions on the standardized scale, and then transforms these back to the original scale.