Learn R Programming

cNORM (version 3.1.0)

predictBeta: Predicts beta coefficients in dependence of age

Description

Predicts beta coefficients in dependence of age

Usage

predictBeta(model, x, group)

Value

A data.frame with z scores and percentiles as well as predicted a and b values for the specific 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

Examples

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

Run the code above in your browser using DataLab