Convenience function to plot residuals against all predictors of the model / against certain predictors of the model / against a predictor and all levels of a grouping variable.
Arguments
- simulationOutput
an object with simulated residuals created by simulateResiduals.
- predictorNames
names of the predictors / group levels to be plotted.
- predictorType
whether multiple plots should be created based on different predictor variables (predictor) or a single predictor and each corresponding group level (groupLevel).
- form
optional predictor (and grouping variable) against which the residuals should be plotted.
- quantreg
whether to perform a quantile regression or a smooth spline around the mean.
- rank
if T, the values provided in form will be rank transformed.
- asFactor
should a numeric predictor provided in form be treated as a factor.
- smoothScatter
if T, a smooth scatter plot will plotted instead of a normal scatter plot.
- quantiles
for a quantile regression, which quantiles should be plotted.
- absoluteDeviation
if T, switch from displaying normal quantile residuals to absolute deviation from the mean expectation of 0.5 (calculated as 2 * abs(res - 0.5)).
- ...
additional arguments to plot / boxplot.
Details
For further details on the parameters see plotResiduals.