Learn R Programming

BSDA (version 1.2.0)

Cabinets: Estimates of costs of kitchen cabinets by two suppliers on 20 prospective homes

Description

Data for Exercise 7.83

Usage

Cabinets

Arguments

Format

A data frame/tibble with 20 observations on three variables

home

a numeric vector

supplA

estimate for kitchen cabinets from supplier A (in dollars)

supplB

estimate for kitchen cabinets from supplier A (in dollars)

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 {
DIF <- Cabinets$supplA - Cabinets$supplB
qqnorm(DIF)
qqline(DIF)
shapiro.test(DIF)
with(data = Cabinets, 
     t.test(supplA, supplB, paired = TRUE)
)
with(data = Cabinets,
     wilcox.test(supplA, supplB, paired = TRUE)
)
rm(DIF)

# }

Run the code above in your browser using DataLab