predictNorm: Retrieve norm value for raw score at a specific age

View source: R/predict.R

predictNormR Documentation

Retrieve norm value for raw score at a specific age

Description

This functions numerically determines the norm score for raw scores depending on the level of the explanatory variable A, e. g. norm scores for raw scores at given ages.

Usage

predictNorm(
  raw,
  A,
  model,
  minNorm = NULL,
  maxNorm = NULL,
  force = FALSE,
  silent = FALSE
)

Arguments

raw

The raw value, either single numeric or numeric vector

A

the explanatory variable (e. g. age), either single numeric or numeric vector

model

The regression model or a cnorm object

minNorm

The lower bound of the norm score range

maxNorm

The upper bound of the norm score range

force

Try to resolve missing norm scores in case of inconsistent models

silent

set to TRUE to suppress messages

Value

The predicted norm score for a raw score, either single value or vector

See Also

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

Examples

# Generate cnorm object from example data
cnorm.elfe <- cnorm(raw = elfe$raw, group = elfe$group)

# return norm value for raw value 21 for grade 2, month 9
specificNormValue <- predictNorm(raw = 21, A = 2.75, cnorm.elfe)

# predicted norm scores for the elfe dataset
# predictNorm(elfe$raw, elfe$group, cnorm.elfe)


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