powered by
Data for Exercises 2.5, 2.24, and 2.55
Energy
A data frame with 12 observations on the following 5 variables.
Size
a numeric vector
kilowatt
SRES1
FITS1
Residuals
# NOT RUN { str(Energy) attach(Energy) plot(Size,kilowatt) cor(Size,kilowatt) model <- lm(kilowatt~Size) plot(Size,resid(model)) detach(Energy) # }
Run the code above in your browser using DataLab