plotRaw {cNORM}R Documentation

Plot manifest and fitted raw scores

Description

The function plots the raw data against the fitted scores from the regression model per group. This helps to inspect the precision of the modeling process. The scores should not deviate too far from regression line.

Usage

plotRaw(data, model, group = NULL, raw = NULL, type = 0)

Arguments

data

The raw data within a data.frame

model

The regression model

group

The grouping variable

raw

The raw score variable

type

Type of display: 0 = plot manifest against fitted values, 1 = plot manifest against difference values

Examples

# Load example data set, compute model and plot results
normData <- prepareData()
m <- bestModel(data = normData)
plotRaw(normData, m, group="group")

[Package cNORM version 1.2.0 Index]