powered by
The p2.12 data frame has 12 observations on the number of pounds of steam used per month at a plant and the average monthly ambient temperature.
p2.12
data(p2.12)
This data frame contains the following columns:
ambient temperature (in degrees F)
usage (in thousands of pounds)
data(p2.12) attach(p2.12) usage.lm <- lm(usage ~ temp) summary(usage.lm) predict(usage.lm, newdata=data.frame(temp=58), interval="prediction") detach(p2.12)
Run the code above in your browser using DataLab