Rpdata {alr4} | R Documentation |
Always plot residuals.
Description
This example with aritifical data is designed to demonstrate the importance of plotting residuals.
Usage
data(Rpdata)
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
Source
Data generated using programs from http://www4.stat.ncsu.edu/~stefanski/NSF_Supported/Hidden_Images/stat_res_plots.html
References
Stefanski, L. A. (2007). Residual (sur)Realism. The American Statistician, 61, 163-177. url=https://www.amstat.org/about/pdfs/NCSUStatsProfSurpriseHomework.pdf.
Examples
data(Rpdata)
## Not run:
require(car)
residualPlot(lm(Rpdata))
## End(Not run)
[Package alr4 version 1.0.6 Index]