plotRaw: Plot manifest and fitted raw scores

View source: R/plot.R

plotRawR 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(model, group = FALSE, raw = NULL, type = 0)

Arguments

model

The regression model from the 'cnorm' function

group

Should the fit be displayed by group?

raw

Vector of the observed raw data

type

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

See Also

Other plot: plot.cnorm(), plot.cnormBetaBinomial(), plot.cnormBetaBinomial2(), plotDensity(), plotDerivative(), plotNorm(), plotNormCurves(), plotPercentileSeries(), plotPercentiles(), plotSubset()

Examples

# Compute model with example dataset and plot results
result <- cnorm(raw = elfe$raw, group = elfe$group)
plotRaw(result)

WLenhard/cNORM documentation built on Sept. 7, 2024, 6:28 p.m.