cars | R Documentation |
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.
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
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.
Donoho, David and Ramos, Ernesto (1982), “PRIMDATA: Data Sets for Use With PRIM-H” (Draft).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.