predictCoefficients2: Predict alpha and beta parameters for a beta-binomial...

View source: R/betaBinomial.R

predictCoefficients2R Documentation

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

Description

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

Usage

predictCoefficients2(model, ages, n = NULL)

Arguments

model

An object of class "cnormBetaBinomial2".

ages

A numeric vector of age points at which to make predictions.

n

The maximum score to be achieved.

Details

The function applies the same standardization used in model fitting and the same clamping of the linear predictors (\pm 20 on the log scale) as the likelihood function, ensuring consistent behavior also under (mild) extrapolation.

Value

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


cNORM documentation built on July 13, 2026, 5:08 p.m.