predictBeta {cNORM}R Documentation

Predicts beta coefficients in dependence of age

Description

Predicts beta coefficients in dependence of age

Usage

predictBeta(model, x, group)

Arguments

model

An 'betaContinuous' model output

x

A vector specifying the raw scores

group

A vector specifying the group variables for each raw score

Value

A data.frame with z scores and percentiles as well as predicted a and b values for the specific group

Examples

# Determies beta parameters and models these continuously
param <- betaByGroup(elfe$raw, elfe$group, 26)
beta.model <- betaContinuous(param, 4, 4)

# Calculates z scores
x <- c(15, 8, 11, 18)
newGroup <- c(3.9, 1.2, 4.5, 6.3)

predictBeta(beta.model, x, newGroup)

[Package cNORM version 3.1.0 Index]