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.
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
Examples
# Compute model with example dataset and plot resultsresult <- cnorm(raw = elfe$raw, group = elfe$group)plotRaw(result)