statistical-rethinking-2023
statistical-rethinking-2023 copied to clipboard
Chapter 11 Incorrect Gender Counterfactual
There is an issue with the "total_effect_gender_model" in the chapter 11 notebook. The problem arises because the coord for "GENDER" and the data container for "GENDER_ID" use the same name "gender". To fix the issue just change one of the names in my case I just changed the following line:
gender = pm.MutableData('gender', GENDER_ID)
to:
gender = pm.MutableData('gender_id', GENDER_ID)