predict.cnormBetaBinomial2: Predict Norm Scores from Raw Scores

predict.cnormBetaBinomial2R Documentation

Predict Norm Scores from Raw Scores

Description

This function calculates norm scores based on raw scores, age, and a fitted cnormBetaBinomial model.

Usage

## S3 method for class 'cnormBetaBinomial2'
predict(object, ...)

Arguments

object

A fitted model object of class 'cnormBetaBinomial' or 'cnormBetaBinomial2'.

...

Additional arguments passed to the prediction method:

  • age A numeric vector of ages, same length as raw.

  • score A numeric vector of raw scores.

  • range The range of the norm scores in standard deviations. Default is 3. Thus, scores in the range of +/- 3 standard deviations are considered.

Details

The function first predicts the alpha and beta parameters of the beta-binomial distribution for each age using the provided model. It then calculates the cumulative probability for each raw score given these parameters. Finally, it converts these probabilities to the norm scale specified in the model.

Value

A numeric vector of norm scores.

See Also

Other predict: derivationTable(), getNormCurve(), normTable(), predict.cnormBetaBinomial(), predictNorm(), predictRaw(), rawTable()

Examples

## Not run: 
# Assuming you have a fitted model named 'bb_model':
model <- cnorm.betabinomial(ppvt$age, ppvt$raw)
raw <- c(100, 121, 97, 180)
ages <- c(7, 8, 9, 10)
norm_scores <- predict(model, ages, raw)

## End(Not run)


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