plot.lmRob | R Documentation |
Creates a set plots useful for assessing a robustly fitted linear model. The plot options are (2) Normal QQ-Plot of Residuals, (3) Estimated Kernel Density of Residuals, (4) Robust Residuals vs Robust Distances, (5) Residuals vs Fitted Values, (6) Sqrt of abs(Residuals) vs Fitted Values, (7) Response vs Fitted Values, (8) Standardized Residuals vs Index (Time), (9) Overlaid Normal QQ-Plot of Residuals, and (10) Overlaid Estimated Density of Residuals. For simple linear regression models there is also the option to have a side-by-side plots of the the fit over a scatter plot of the data.
## S3 method for class 'lmRob'
plot(x, which.plots = c(5, 2, 6, 4), ...)
x |
an lmRob object. |
which.plots |
either "ask", "all", or an integer vector specifying which plots to draw. If |
... |
additional arguments are pass to the ploting subfunctions which are listed in the see also section. |
This function casts the lmRob object as an lmfm object containing a single model.
The actual ploting is then done by the function plot.lmfm
.
x
is invisibly returned.
The selected plots are drawn on a graphics device.
Atkinson, A. C. (1985). Plots, Transformations and Regression. New York: Oxford University Press.
plot
,
lmRob
,
plot.lmfm
.
data(stack.dat)
stack.rob <- lmRob(Loss ~ ., data = stack.dat)
plot(stack.rob, which.plots = 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.