Data for Exercise 10.60

Appendec

Format

A data frame/tibble with 59 observations on two variables

cost

median costs of appendectomies at hospitals across the state of North Carolina in 1992

region

a vector classifying each hospital as rural, regional, or metropolitan

Source

Consumer's Guide to Hospitalization Charges in North Carolina Hospitals (August 1994), North Carolina Medical Database Commission, Department of Insurance.

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples


boxplot(cost ~ region, data = Appendec, col = c("red", "blue", "cyan"))

anova(lm(cost ~ region, data = Appendec))
#> Analysis of Variance Table
#> 
#> Response: cost
#>           Df   Sum Sq Mean Sq F value Pr(>F)
#> region     2   545154  272577  0.2327 0.7931
#> Residuals 56 65593438 1171311