Simulation-based CI for slope

Inferensi untuk Regresi Linear di R

Jo Hardin

Professor, Pomona College

Inferensi untuk Regresi Linear di R

Permutation vs. bootstrap variability

Slopes from permuted data

Slopes from bootstrapped data

Inferensi untuk Regresi Linear di 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")
Inferensi untuk Regresi Linear di R

Sampling distribution: randomization vs. bootstrap

Slopes from permuted data

Slopes from bootstrapped data

Inferensi untuk Regresi Linear di R

Let's practice!

Inferensi untuk Regresi Linear di R

Preparing Video For Download...