Comparison Diagnostic Plots for Linear Regression Models
Produces a set of comparison diagnostic plots. The plot options are
Normal QQ Plot of Residuals,
Kernel Density Estimate of Residuals,
Residuals vs. Mahalanobis Distance,
Residuals vs. Fitted Values,
Sqrt Residuals vs. Fitted Values,
Response vs. Fitted Values,
Residuals vs. Index (Time),
Overlaid Normal QQ Plot of Residuals,
Overlaid Kernel Density Estimate of Residuals,
Scatter Plot with Overlaid Fits (for simple linear regression models).
## S3 method for class 'lmfm' plot(x, which.plots = 1:10, ...)
x |
an |
which.plots |
either |
... |
additional parameters are ignored. |
x
is invisibly returned.
The selected plots are drawn on a graphics device.
See sideBySideQQPlot
for 2,
sideBySideKernelDensityPlot
for 3,
sideBySideIndexPlot
for 8,
overlaidQQPlot
for 9,
overlaidKernelDensityPlot
for 10,
overlaidSimpleRegressionPlot
for 11, and
sideBySideScatterPlot
for the others.
data(stackloss) stack.lm <- lm(stack.loss ~ ., data = stackloss) stack.clean <- lm(stack.loss ~ ., data = stackloss, subset = 5:20) fm <- fit.models(stack.clean, stack.lm) plot(fm)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.