powered by
Data for Exercise 2.50
Psat
A data frame/tibble with seven observations on the two variables
PSAT score
SAT score
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# 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