Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Generalized Linear Models in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Exponentiate the results and extract the confidence intervals of bus_out with tidy()
___
Code bewerken en uitvoeren