moderndive / ModernDive_book

Statistical Inference via Data Science: A ModernDive into R and the Tidyverse
https://www.moderndive.com/
Other
759 stars 491 forks source link

Missing values in Chapters 5 & 6 #429

Closed daniloderosa closed 3 years ago

daniloderosa commented 3 years ago

Schermata 2021-08-20 alle 19 33 42 Schermata 2021-08-20 alle 19 38 41

In Chapters 5 & 6, when you run the regression there's a problem with the intercept of categorical variables: every time (in almost every single table and formula) it's missing, as you can see in the picture. I can't actually point to one single chunk because there's a problem in almost every single of them (but, as I said, I think the problem lies when there's a categorical variable in the model).

rudeboybert commented 3 years ago

Hey @daniloderosa thanks for bringing this to our attention, I'll fix this ASAP

rudeboybert commented 3 years ago

Thanks @daniloderosa (and Aaron C who emailed me separately). The issue was the moderndive package now spits out different labels for offset categorical variable levels; they now include a ": " between the variable name and the level. It's been fixed online