STAT210prob3.17: STAT210prob3.17: Car Lease Length

STAT210prob3.17R Documentation

STAT210prob3.17: Car Lease Length

Description

A rental care company wants to investigate whether the type of car rented affects the length of the rental period. An experiment is run for one week at a particular location, and 10 rental contracts are selected at random for each car type.

Usage

STAT210prob3.17

Format

A data frame with 40 observations (rows) and 4 variables (columns).

Column name Data type Description Values
[,1] Type_of_Car character 4 car categories ("Sub-compact"..."Full Size")
[,2] Days integer The rental period in days (1 - 10)
[,3] Sqrt_days numeric The square root of the lease period (1 - 3.16228)
[,4] RESI1 numeric Residuals (-0.962723 - 0.917279)

Details

This is data from Exercise 3.17 in Design and Analysis of Experiments, 9th Edition, EMEA Edition.

Source

Montgomery, D. C. (2019) Design and Analysis of Experiments, 9th Edition, EMEA Edition. New York: Wiley.

Examples


# A short summary of the variables
summary(STAT210prob3.17)

# Get the residuals
STAT210prob3.17$Type_of_Car <- as.factor(STAT210prob3.17$Type_of_Car)
res <- aov(Sqrt_days ~ Type_of_Car, data = STAT210prob3.17)
res$residuals


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.