R/BSDA-package.R
Laminect.Rd
Data for Exercise 10.18
Laminect
A data frame/tibble with 138 observations on two variables
a character vector indicating the area of the hospital with Rural
, Regional
,
and Metropol
a numeric vector indicating cost of a laminectomy
Consumer's Guide to Hospitalization Charges in North Carolina Hospitals (August 1994), North Carolina Medical Database Commission, Department of Insurance.
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
boxplot(cost ~ area, data = Laminect, col = topo.colors(3))
anova(lm(cost ~ area, data = Laminect))
#> Analysis of Variance Table
#>
#> Response: cost
#> Df Sum Sq Mean Sq F value Pr(>F)
#> area 2 12838182 6419091 1.6658 0.201
#> Residuals 43 165698288 3853449