moderndive / moderndive_labs

Labs and Instructor Resources for ModernDive

Home Page:https://moderndive.com/labs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with levels for inference with a categorical variable.

rudeboybert opened this issue · comments

c/o @smetzer180

I have been diving more and more into infer package...and just learned an interesting thing, after banging my head into the wall for a while. In case you have not seen this error before....if you filter, and do not use droplevels() some of the calculate() functions do not work (like getting a z* for difference in proportions for instance. FWIW....in case it saves you a 🤕

Specifically Line 317 of
inf_catSDS220.Rmd.zip