Loading notebook runner...
Module 3
Create fitted values and residuals from a multiple-regression wage model.
Related dataset
WAGE1
Estimated time
25 to 40 min
Packages
pandas, numpy, matplotlib
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_stata("/data/WAGE1.DTA")
df.head()