Gpa {BSDA} | R Documentation |
Data for Exercise 2.13
Gpa
A data frame with 10 observations on the following 2 variables.
HSGPA
CollGPA
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Duxbury
str(Gpa) attach(Gpa) plot(HSGPA,CollGPA) model <- lm(CollGPA~HSGPA) abline(model) model r <- resid(model) yhat <- fitted(model) Table2.1 <- cbind(HSGPA,CollGPA,yhat,r) Table2.1 remove(r,yhat,model,Table2.1) detach(Gpa)