Dealers: Automobile dealers classified according to type dealership...

DealersR Documentation

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 documentation built on Sept. 19, 2023, 1:08 a.m.