Session Ready
Exercise

Odds-ratios & confidence intervals in the Tidyverse

The broom package in the Tidyverse give us a powerful tool, tidy(), for extracting coefficients and making them readable. More specifically, it allows us to extract the coefficients, as well as the confidence intervals, and exponentiate the outputs. Confidence intervals are another approach for statistical inference. If the confidence intervals for odds-ratios do not include 1, the corresponding coefficient is statistically different than 1. During this exercise, you will use tidy() to extract the 95% confidence intervals from the bus model in the previous exercises.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Use the tidy() function on bus_out to extract the coefficients.
    • Set exponentiate to TRUE to convert the results to odds ratios.
    • Set conf.int to TRUE to include confidence intervals.