Calculate bootstrap interval using both methods
Using our bootstrap distribution from an earlier exercise, we can calculate bootstrap intervals for the median price of 1 bedroom apartments in Manhattan. Remember that we saved the bootstrap distribution as rent_med_ci
.
This exercise is part of the course
Inference for Numerical Data in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Calculate bootstrap CI as lower and upper quantiles
rent_med_ci %>%
summarize(
l = quantile(___, ___),
u = ___
)