Simulation-based CI for slope

Inference for Linear Regression in R

Jo Hardin

Professor, Pomona College

Inference for Linear Regression in R

Permutation vs. bootstrap variability

Slopes from permuted data

Slopes from bootstrapped data

Inference for Linear Regression in R

Permutation vs. bootstrap code

Permutation:
twins %>% 
  specify(Foster ~ Biological) %>% 
  hypothesize(null = "independence") %>% 
  generate(reps = 100, type = "permute") %>% 
  calculate(stat = "slope")
Bootstrap:
twins %>% 
  specify(Foster ~ Biological) %>%  
  generate(reps = 100, type = "bootstrap") %>% 
  calculate(stat = "slope")
Inference for Linear Regression in R

Sampling distribution: randomization vs. bootstrap

Slopes from permuted data

Slopes from bootstrapped data

Inference for Linear Regression in R

Let's practice!

Inference for Linear Regression in R

Preparing Video For Download...