Learn R Programming

grpnet (version 0.5)

auto: Auto MPG Data Set

Description

Miles per gallon and other characteristics of vehicles from the 1970s-1980s. A version of this dataset was used as the 1983 American Statistical Association Exposition dataset.

Usage

data("auto")

Arguments

Format

A data frame with 392 observations on the following 9 variables.

mpg

miles per gallon (numeric vector)

cylinders

number of cylinders: 3,4,5,6,8 (ordered factor)

displacement

engine displacement in cubic inches (numeric vector)

horsepower

engine horsepower (integer vector)

weight

vehicle weight in of lbs. (integer vector)

acceleration

0-60 mph time in sec. (numeric vector)

model.year

ranging from 1970 to 1982 (integer vector)

origin

region of origin: American, European, Japanese (factor vector)

Details

This is a modified version of the "Auto MPG Data Set" on the UCI Machine Learning Repository, which is a modified version of the "cars" dataset on StatLib.

Compared to the version of the dataset in UCI's MLR, this version of the dataset has removed (i) the 6 rows with missing horsepower scores, and (ii) the last column giving the name of each vehicle (car.name).

Examples

Run this code
# load data
data(auto)

# display structure
str(auto)

# display header
head(auto)

# see 'cv.grpnet' for cross-validation examples
?cv.grpnet

# see 'grpnet' for fitting examples
?grpnet

Run the code above in your browser using DataLab