Learn R Programming

BSDA (version 1.2.0)

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

Description

Data for Example 2.22

Usage

Dealers

Arguments

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

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab