Learn R Programming

sasLM (version 0.6.0)

pD: Diagnostic Plot for Regression

Description

Four standard diagnostic plots for regression.

Usage

pD(rx, Title=NULL)

Arguments

rx

a result of lm, which can give fitted, residuals, and rstandard.

Title

title to be printed on the plot

Value

Four diagnostic plots in a page.

Details

Most frequently used diagnostic plots are 'observed vs. fitted', 'standarized residual vs. fitted', 'distribution plot of standard residuals', and 'Q-Q plot of standardized residuals'.

Examples

Run this code
# NOT RUN {
  pD(lm(uptake ~ Plant + Type + Treatment + conc, CO2), "Diagnostic Plot")
# }

Run the code above in your browser using DataLab