plotRaw {cNORM} | R Documentation |
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(data, model, group = NULL, raw = NULL, type = 0)
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 |
# Load example data set, compute model and plot results normData <- prepareData() m <- bestModel(data = normData) plotRaw(normData, m, group="group")