Learn R Programming

alr3 (version 1.1.12)

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. (2005). Applied Linear Regression, third edition. New York: Wiley.

Examples

Run this code
data(fuel2001)
fuel2001$Dlic <- 1000*fuel2001$Drivers/fuel2001$Pop
fuel2001$Fuel <- 1000*fuel2001$FuelC/fuel2001$Pop
fuel2001$Income <- fuel2001$Income/1000
fuel2001$logMiles <- log(fuel2001$Miles,2)
pairs(Fuel~Tax+Dlic+Income+logMiles,data=fuel2001)

Run the code above in your browser using DataLab