Learn R Programming

VisCollin (version 0.1.2)

cars: 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.

Arguments

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

References

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

Examples

Run this code
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)

Run the code above in your browser using DataLab