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

  1. (not used)

  2. Normal QQ Plot of Residuals,

  3. Kernel Density Estimate of Residuals,

  4. Residuals vs. Mahalanobis Distance,

  5. Residuals vs. Fitted Values,

  6. Scale-Location,

  7. Response vs. Fitted Values,

  8. Residuals vs. Index (Time),

  9. Overlaid Normal QQ Plot of Residuals,

  10. Overlaid Kernel Density Estimate of Residuals,

  11. Scatter Plot with Overlaid Fits (for simple linear regression models).

Usage

## S3 method for class 'lmfm'
plot(x, which.plots = c(5, 2, 6, 4), ...)

Arguments

x

an lmfm object.

which.plots

either "ask", "all", or a vector of integer values specifying which plots to draw. In the latter case, use the plot numbers given in the description above (or in the "ask" menu). Any other values will be silently ignored.

...

additional parameters are ignored.

Value

x is invisibly returned.

Side Effects

The selected plots are drawn on a graphics device.

See Also

See qqPlot.lmfm for 2, kernDenPlot.lmfm for 3, indexPlot.lmfm for 8, overlaidQQPlot.lmfm for 9, overlaidKernDenPlot.lmfm for 10, simpleRegPlot.lmfm for 11, and scatterPlot.lmfm 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)

[Package fit.models version 0.5-14 Index]