Loading notebook runner...
Module 7
Encode categories with a base group and compare coefficient meanings.
Related dataset
MODULE7_CATEGORY_EFFECTS_SYNTHETIC
Estimated time
25 to 40 min
Packages
pandas, numpy, statsmodels, patsy
Expected output
Printed Python results that can be compared with the lesson explanation.
Learning goals
Common errors
Dataset path helper
import pandas as pd
df = pd.read_csv("/data/module-7/module7_category_effects_synthetic.csv")
df.head()