Learn R Programming

alr4 (version 1.0.0)

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

source

http://www.fhwa.dot.gov/ohim/hs01/index.htm

References

Weisberg, S. (in press). 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