statistical-rethinking-2023 icon indicating copy to clipboard operation
statistical-rethinking-2023 copied to clipboard

Chapter 11 Incorrect Gender Counterfactual

Open Dekermanjian opened this issue 10 months ago • 0 comments

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)

Dekermanjian avatar May 02 '24 00:05 Dekermanjian