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.

This exercise is part of the course

Generalized Linear Models in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Exponentiate the results and extract the confidence intervals of bus_out with tidy()
___