p2.12: Data Set for Problem 2-12

p2.12R Documentation

Data Set for Problem 2-12

Description

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.

Usage

data(p2.12)

Format

This data frame contains the following columns:

temp

ambient temperature (in degrees F)

usage

usage (in thousands of pounds)

Source

Montgomery, D.C., Peck, E.A., and Vining, C.G. (2001) Introduction to Linear Regression Analysis. 3rd Edition, John Wiley and Sons.

Examples

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)

MPV documentation built on Sept. 11, 2024, 6:51 p.m.

Related to p2.12 in MPV...