Learn R Programming

BSDA (version 1.2.2)

Append: Median costs of an appendectomy at 20 hospitals in North Carolina

Description

Data for Exercise 1.119

Usage

Append

Arguments

Format

A data frame/tibble with 20 observations on one variable

fee

fees for an appendectomy for a random sample of 20 hospitals in North Carolina

References

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

Examples

Run this code

fee <- Append$fee
ll <- mean(fee) - 2*sd(fee)
ul <- mean(fee) + 2*sd(fee)
limits <-c(ll, ul)
limits
fee[fee < ll | fee > ul]

Run the code above in your browser using DataLab