Learn R Programming

alr4 (version 1.0.5)

fuel2001: Fuel consumption

Description

Data on motor fuel consumption and related variables, for the year 2001. The unit is a state in the United States or the District of Columbia. Data are for 2001, unless noted.

Arguments

Format

This data frame contains the following columns. Row labels are the two-digit US Postal abbreviations for the US states.
Drivers
Number of Licensed drivers in the state
FuelC
Gasoline sold for road use (1000s of gal.)
Income
Per capita personal income (year 2000)
Miles
Miles of Federal-aid highway miles in the state
MPC
Estimated miles driven per capita
Pop
Population age 16 and over
Tax
Gasoline state tax rate, cents per gallon

References

Weisberg, S. (2014). Applied Linear Regression, third edition. New York: Wiley.

Examples

Run this code
head(fuel2001)
# Most of the examples in ALR3 that use these data first 
# transform several of the columns
fuel2001 <- transform(fuel2001,
     Dlic=1000 * Drivers/Pop,
     Fuel=1000 * FuelC/Pop,
     Income=Income/1000)
pairs(Fuel~Tax + Dlic + Income + log2(Miles), data=fuel2001)

Run the code above in your browser using DataLab