STAT210prob3.17 | R Documentation |
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.
STAT210prob3.17
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) |
This is data from Exercise 3.17 in Design and Analysis of Experiments, 9th Edition, EMEA Edition.
Montgomery, D. C. (2019) Design and Analysis of Experiments, 9th Edition, EMEA Edition. New York: Wiley.
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.