# table.b3: Table B3 In MPV: Data Sets from Montgomery, Peck and Vining

## Description

The `table.b3` data frame has observations on gasoline mileage performance for 32 different automobiles.

## Usage

 `1` ```data(table.b3) ```

## Format

This data frame contains the following columns:

y

Miles/gallon

x1

Displacement (cubic in)

x2

Horsepower (ft-lb)

x3

Torque (ft-lb)

x4

Compression ratio

x5

Rear axle ratio

x6

Carburetor (barrels)

x7

No. of transmission speeds

x8

Overall length (in)

x9

Width (in)

x10

Weight (lb)

x11

Type of transmission (1=automatic, 0=manual)

## Source

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

## References

Motor Trend, 1975

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10 11 12``` ```data(table.b3) attach(table.b3) y.lm <- lm(y ~ x1 + x6) summary(y.lm) # testing for the significance of the regression: y.null <- lm(y ~ 1) anova(y.null, y.lm) # 95% CI for mean gas mileage: predict(y.lm, newdata=data.frame(x1=275, x6=2), interval="confidence") # 95% PI for gas mileage: predict(y.lm, newdata=data.frame(x1=275, x6=2), interval="prediction") detach(table.b3) ```

### Example output

```Attaching package: 'MPV'

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

stackloss

Call:
lm(formula = y ~ x1 + x6)

Residuals:
Min      1Q  Median      3Q     Max
-7.0623 -1.6687 -0.3628  1.6221  6.2305

Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 32.884551   1.535408  21.417  < 2e-16 ***
x1          -0.053148   0.006137  -8.660 1.55e-09 ***
x6           0.959223   0.670277   1.431    0.163
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 3.013 on 29 degrees of freedom
Multiple R-squared:  0.7873,	Adjusted R-squared:  0.7726
F-statistic: 53.67 on 2 and 29 DF,  p-value: 1.79e-10

Analysis of Variance Table

Model 1: y ~ 1
Model 2: y ~ x1 + x6
Res.Df     RSS Df Sum of Sq      F   Pr(>F)
1     31 1237.54
2     29  263.23  2    974.31 53.669 1.79e-10 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
fit      lwr      upr
1 20.18739 18.87221 21.50257
fit     lwr      upr
1 20.18739 13.8867 26.48808
```

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