Skip to contents

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

WebR

๐Ÿงช Experimental: Interactive webR examples are a new feature. Loading may take a moment, and the package version might differ from this documentation.

Interactive Example Available

Examples

# 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")