Cars2004 {mffSM}R Documentation

2004 New car and truck data

Description

Data on 428 new vehicles that were on the market in the U.S. in 2004. The variables recorded include price, measurements relating to the size of the vehicle, and fuel efficiency.

Data Cars2004nh are a subset of Cars2004 containing only cars with a non-hybrid engine.

Usage

data(Cars2004)

data(Cars2004nh)

Format

A data.frame with 428 rows (425 rows for Cars2004nh) and the following variables.

vname

vehicle name

type

type of the vehicle, 1 = personal, 2 = wagon, 3 = sport utility vehicle (SUV), 4 = pickup, 5 = sports car, 6 = minivan

drive

drive of the vehicle, 1 = front-wheel, 2 = rear-wheel, 3 = all-wheel (4x4)

hybrid

is this a hybrid (gas/electric) vehicle, 0 = no, 1 = yes, not present in Cars2004nh

price.retail

suggested retail price, what the manufacturer thinks the vehicle is worth, including adequate profit for the automaker and the dealer [USD]

price.dealer

dealer cost (or “invoice price”), what the dealership pays the manufacturer [USD]

price

an average of price.retail and price.dealer [USD]

cons.city

city fuel consumption [liters/100 km]

cons.highway

highway fuel consumption [liters/100 km]

consumption

an average of cons.city and cons.highway [liters/100 km]

engine.size

engine size [liters]

ncylinder

number of cylinders, -1 if rotary engine

horsepower

engine horsepower

weight

weight [kg]

iweight

reciprocal of the weight

lweight

natural logarithm of the weight

wheel.base

wheel base [cm]

length

length of the vehicle [cm]

width

width of the vehicle [cm]

ftype

factor with levels personal/wagon/SUV/pickup/sport/minivan corresponding to the variable type

fdrive

factor with levels front/rear/4x4 corresponding to the variable drive

fhybrid

factor with levels No/Yes corresponding to the variable hybrid, not present in Cars2004nh

Source

Kiplinger's Personal Finance, December 2003, vol. 57, no. 12, pp. 104-123, http:/www.kiplinger.com

http://www.amstat.org/publications/jse/datasets/04cars.dat.txt

Transformations from units used classically in the U.S. (miles per gallon, inches, pounds) into units used classically in the continental Europe (liters per 100 km, centimeters, kilograms) provided by the package author.

Examples

data(Cars2004)
summary(Cars2004)

data(Cars2004nh)
summary(Cars2004nh)

[Package mffSM version 1.2 Index]