Learn R Programming

BSDA (version 1.2.0)

Psat: PSAT scores versus SAT scores

Description

Data for Exercise 2.50

Usage

Psat

Arguments

Format

A data frame/tibble with seven observations on the two variables

psat

PSAT score

sat

SAT score

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

Run this code
# NOT RUN {
model <- lm(sat ~ psat, data = Psat)
par(mfrow = c(1, 2))
plot(Psat$psat, resid(model))
plot(model, which = 1)
rm(model)
par(mfrow = c(1, 1))

# }

Run the code above in your browser using DataLab