Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Dealers

Automobile dealers classified according to type dealership and service rendered to customers


Description

Data for Example 2.22

Usage

Dealers

Format

A data frame/tibble with 122 observations on two variables

type

a factor with levels Honda, Toyota, Mazda, Ford, Dodge, and Saturn

service

a factor with levels Replaces unnecessarily and Follows manufacturer guidelines

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples

xtabs(~type + service, data = Dealers)
T1 <- xtabs(~type + service, data = Dealers)
T1
addmargins(T1)
pt <- prop.table(T1, margin = 1)
pt
barplot(t(pt),  col = c("red", "skyblue"), legend = colnames(T1))
rm(T1, pt)

BSDA

Basic Statistics and Data Analysis

v1.2.0
GPL (>= 2)
Authors
Alan T. Arnholt [aut, cre], Ben Evans [aut]
Initial release
2017-07-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.