Are you sure about that?

Lab 3D

Directions: Follow along with the slides and answer the questions in red font in your journal.

Confidence and intervals

In this lab

What is the mean age of people older than 15 living in the United States?

One bootstrap

Our first bootstrap

bs_rows <- ____(1:____, size = ____, replace = ____)
bs_atus <- slice(atus, bs_rows)

Take a look

One strap, two strap

Many bootstraps

Bootstrap function

bs_func <- function() {
    
    
    
}

Visualizing our bootstraps

bs_means <- do(____) * bs_func()

Bootstrapped confidence intervals

The lowest 5% of our estimates are below _______ years and the highest 5% of our estimates are above_______ years.

On your own