table.b3: Table B3

table.b3R Documentation

Table B3

Description

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

Usage

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

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)

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

Related to table.b3 in MPV...