plotDensity {cNORM} | R Documentation |
The function plots the density curves based on the regression model against the actual percentiles from the raw data. As in 'plotNormCurves', please check for inconsistent curves, especially curves showing implausible shapes.
plotDensity(model, minRaw = NULL, maxRaw = NULL, minNorm = NULL, maxNorm = NULL, group = NULL, covariate = NULL)
model |
The model from the bestModel function |
minRaw |
Lower bound of the raw score |
maxRaw |
Upper bound of the raw score |
minNorm |
Lower bound of the norm score |
maxNorm |
Upper bound of the norm score |
group |
Column of groups to plot |
covariate |
In case, a covariate has been used, please specify the degree of the covariate / the specific value here. |
plotNormCurves, plotPercentiles
# Load example data set, compute model and plot results for age values 2, 4 and 6 normData <- prepareData() m <- bestModel(data = normData) plotDensity(m, group = c (2, 4, 6))