Learn R Programming

alr4 (version 1.0.5)

Rpdata: Always plot residuals.

Description

This example with aritifical data is designed to demonstrate the importance of plotting residuals.

Usage

data(Rpdata)

Arguments

Format

A data frame with 990 observations on the following 7 variables.
y
a numeric vector
x1
a numeric vector
x2
a numeric vector
x3
a numeric vector
x4
a numeric vector
x5
a numeric vector
x6
a numeric vector

References

Stefanski, L. A. (2007). Residual (sur)Realism. The American Statistician, 61, 163-177. url=https://www.amstat.org/about/pdfs/NCSUStatsProfSurpriseHomework.pdf.

Examples

Run this code
data(Rpdata)
## Not run: 
# require(car)
# residualPlot(lm(Rpdata))
# ## End(Not run)

Run the code above in your browser using DataLab