predictCoefficients: Predict mean and standard deviation for a beta binomial...

View source: R/betaBinomial.R

predictCoefficientsR Documentation

Predict mean and standard deviation for a beta binomial regression model

Description

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

Usage

predictCoefficients(model, ages, n = NULL)

Arguments

model

An object of class "cnormBetaBinomial", typically the result of a call to cnorm.betabinomial.

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

mu

Predicted mean values

sigma

Predicted standard deviation values


cNORM documentation built on Nov. 4, 2024, 5:07 p.m.