rawTable {cNORM}R Documentation

Create a table with norm scores assigned to raw scores for a specific age based on the regression model

Description

This function is comparable to 'normTable', despite it reverses the assignment: A table with raw scores and the according norm scores for a specific age based on the regression model is generated. This way, the inverse function of the regression model is solved numerically with brute force. Please specify the range of raw values, you want to cover. With higher precision and smaller stepping, this function becomes computational intensive.

Usage

rawTable(A, model, minRaw = NULL, maxRaw = NULL, minNorm = NULL,
  maxNorm = NULL, step = 1, covariate = NULL)

Arguments

A

the age, either single value or vector with age values

model

The regression model

minRaw

The lower bound of the raw score range

maxRaw

The upper bound of the raw score range

minNorm

Clipping parameter for the lower bound of norm scores (default 25)

maxNorm

Clipping parameter for the upper bound of norm scores (default 25)

step

Stepping parameter for the raw scores (default 1)

covariate

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

Value

either data.frame with raw scores and the predicted norm scores in case of simple A value or a list of norm tables if vector of A values was provided

See Also

normTable

Examples

normData <- prepareData()
m <- bestModel(data = normData)
# generate a norm table for the raw value range from 0 to 28 for month 7 of grade 3
table <- rawTable(3 + 7 / 12, m, minRaw = 0, maxRaw = 28)

# generate several raw tables
table <- rawTable(c(2.5, 3.5, 4.5), m, minRaw = 0, maxRaw = 28)

[Package cNORM version 1.2.0 Index]