# p2.12: Data Set for Problem 2-12 In MPV: Data Sets from Montgomery, Peck and Vining

## 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

 `1` ```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

 ```1 2 3 4 5 6``` ```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) ```

### Example output

```Attaching package: 'MPV'

The following object is masked from 'package:datasets':

stackloss

Call:
lm(formula = usage ~ temp)

Residuals:
Min      1Q  Median      3Q     Max
-2.5629 -1.2581 -0.2550  0.8681  4.0581

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -6.33209    1.67005  -3.792  0.00353 **
temp         9.20847    0.03382 272.255  < 2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 1.946 on 10 degrees of freedom
Multiple R-squared:  0.9999,	Adjusted R-squared:  0.9999
F-statistic: 7.412e+04 on 1 and 10 DF,  p-value: < 2.2e-16

fit      lwr      upr
1 527.759 523.1644 532.3537
```

MPV documentation built on June 8, 2018, 1:03 a.m.