| plot.lmfm {fit.models} | R Documentation | 
Comparison Diagnostic Plots for Linear Regression Models
Description
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). 
Usage
## S3 method for class 'lmfm'
plot(x, which.plots = 1:10, ...)
Arguments
| x | an  | 
| which.plots | either  | 
| ... | additional parameters are ignored. | 
Value
x is invisibly returned.
Side Effects
The selected plots are drawn on a graphics device.
See Also
See sideBySideQQPlot for 2,
sideBySideKernelDensityPlot for 3,
sideBySideIndexPlot for 8,
overlaidQQPlot for 9,
overlaidKernelDensityPlot for 10,
overlaidSimpleRegressionPlot for 11, and
sideBySideScatterPlot for the others.
Examples
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)