Learn R Programming

MPV (version 1.64)

table.b1: Table B1

Description

The table.b1 data frame has 28 observations on National Football League 1976 Team Performance.

Usage

data(table.b1)

Arguments

Format

This data frame contains the following columns:

y

Games won in a 14 game season

x1

Rushing yards

x2

Passing yards

x3

Punting average (yards/punt)

x4

Field Goal Percentage (FGs made/FGs attempted)

x5

Turnover differential (turnovers acquired - turnovers lost)

x6

Penalty yards

x7

Percent rushing (rushing plays/total plays)

x8

Opponents' rushing yards

x9

Opponents' passing yards

Examples

Run this code
data(table.b1)
attach(table.b1)
y.lm <- lm(y ~ x2 + x7 + x8)
summary(y.lm)
# over-all F-test:
y.null <- lm(y ~ 1)
anova(y.null, y.lm)
# partial F-test for x7:
y7.lm <- lm(y ~ x2 + x8)
anova(y7.lm, y.lm)
detach(table.b1)

Run the code above in your browser using DataLab