Last data update: 2014.03.03

R: Automobile data from consumer reports
fuel.frameR Documentation

Automobile data from consumer reports

Description

The fuel.frame data frame contains data on 5 variables (columns) for 117 cars (rows).

Usage

data(fuel.frame)

Format

This data frame contains the following columns:

car.name

character variable giving the name (make) of the car

Weight

the weight of the car in pounds.

Disp.

the engine displacement in litres.

Mileage

gas mileage in miles/gallon.

Fuel

a derived variable concerning fuel efficiency.

Type

a factor giving the general type of car. The levels are: Small ,Sporty , Compact , Medium , Large , Van.

Source

Consumer Reports, April, 1990, pp. 235-288.

References

Chambers, J.M. and Hastie, T.J. (eds.) (1992)
Statistical Models in S.
Wadsworth and Brooks, Pacific Grove, California.

Examples

library(SemiPar)
data(fuel.frame)
pairs(fuel.frame)
par(mfrow=c(2,2))
fuel.fit <- lm(Fuel ~ Weight + Disp.,fuel.frame)
plot(fuel.fit,ask=FALSE)
par(mfrow=c(1,1))

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(SemiPar)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/SemiPar/fuel.frame.Rd_%03d_medium.png", width=480, height=480)
> ### Name: fuel.frame
> ### Title: Automobile data from consumer reports
> ### Aliases: fuel.frame
> ### Keywords: datasets
> 
> ### ** Examples
> 
> library(SemiPar)
> data(fuel.frame)
> pairs(fuel.frame)
> par(mfrow=c(2,2))
> fuel.fit <- lm(Fuel ~ Weight + Disp.,fuel.frame)
> plot(fuel.fit,ask=FALSE)
> par(mfrow=c(1,1))
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>