Learn R Programming

cNORM (version 2.0.1)

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

Description

In real test scenarios, usually the results are available as raw values, for which norm scores have to be looked up. This function conducts this reverse transformation via a numerical solution: A precise norm table is generated and the closest fitting norm score for a raw score is returned.

Usage

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

Arguments

raw

The raw value, either single numeric or list of values

A

the age, either single numeric or list of values

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

covariate

In case, a covariate has been used, please specify the degree of the covariate / the specific value here.

Value

The predicted norm score for a raw score, either single value or list of results

See Also

Other predict: derivationTable(), getNormCurve(), normTable(), predictRaw(), rawTable()

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab