cars: Cars Data

carsR Documentation

Cars Data

Description

Data from the 1983 ASA Data Exposition, held in conjunction with the Annual Meetings in Toronto, August 15-18, 1983, https://community.amstat.org/jointscsg-section/dataexpo/dataexpobefore1993 The data set was collected by Ernesto Ramos and David Donoho on characteristics of automobiles.

Format

A data frame with 406 observations on the following 10 variables:

make

make of car, a factor with levels amc audi bmw buick cadillac chev chrysler citroen datsun dodge fiat ford hi honda mazda mercedes mercury nissan oldsmobile opel peugeot plymouth pontiac renault saab subaru toyota triumph volvo vw

model

model of car, a character vector

mpg

miles per gallon, a numeric vector

cylinder

number of cylinders, a numeric vector

engine

engine displacement (cu. inches), a numeric vector

horse

horsepower, a numeric vector

weight

vehicle weight (lbs.), a numeric vector

accel

time to accelerate from O to 60 mph (sec.), a numeric vector

year

model year (modulo 100), a numeric vector ranging from 70 – 82

origin

region of origin, a factor with levels Amer Eur Japan

Source

The data was provided for the ASA Data Exposition in a "shar" file, http://lib.stat.cmu.edu/datasets/cars.data. It is a version of that used by Donoho and Ramos (1982) to illustrate PRIM-H.

References

Donoho, David and Ramos, Ernesto (1982), “PRIMDATA: Data Sets for Use With PRIM-H” (Draft).

Examples

data(cars)
cars.mod <- lm (mpg ~ cylinder + engine + horse + weight + accel + year,
                data=cars)
car::vif(cars.mod)

(cd <- colldiag(cars.mod, center=TRUE))

# simplified display
print(cd, fuzz=.3)

VisCollin documentation built on Sept. 8, 2023, 5:58 p.m.