Residual (Sur)Realism

Description

A dataset that yields a model with surreal residuals.

Usage

residual_surrealism

Format

A data frame with 5,395 rows and 7 columns:

V1
Target variable of interest
V2
First predictor variable
V3
Second predictor variable
V4
Third predictor variable
V5
Fourth predictor variable
V6
Fiveth predictor variable
V7
Sixth predictor variable

Source

Leonard A Stefanski https://www.tandfonline.com/doi/abs/10.1198/000313007X190079

Examples

library(altdocwebrdemo)

# Load the data
data(residual_surrealism)

# Fit a model
model = lm(V1 ~ ., residual_surrealism)

# Graph the residuals vs. fitted values
plot(fitted(model),resid(model))

# Add a line at y = 0
abline(0, 0, col = "red")