...

/

Simulation-Based Inference for Regression

Simulation-Based Inference for Regression

Learn about the confidence interval for a slope in simulation-based inference for regression.

When we interpreted the third through seventh columns of a regression table, we stated that R doesn’t do simulations to compute these values. Rather, R uses theory-based methods that involve mathematical formulas.

We’ll use the simulation-based methods to recreate the values in the regression table. In particular, we’ll use the infer package workflow to:

  • Construct a 95% confidence interval for the population slope β1\beta_1 using bootstrap resampling with replacement. We did this with the pennies data and with the mythbusters_yawn data.

  • Conduct a hypothesis test of H0 : β1=0H_0\space : \space \beta_1=0 vs. HA : β10H_A\space : \space \beta_1 \neq0 ...