p2.12 | R Documentation |
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.
data(p2.12)
This data frame contains the following columns:
ambient temperature (in degrees F)
usage (in thousands of pounds)
Montgomery, D.C., Peck, E.A., and Vining, C.G. (2001) Introduction to Linear Regression Analysis. 3rd Edition, John Wiley and Sons.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.