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 for new age points.

Usage

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.

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.

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


WLenhard/cNORM documentation built on Nov. 30, 2024, 4:45 p.m.