Loading notebook runner...
Module 4
Compare restricted and unrestricted models and compute an F statistic.
Related dataset
BWGHT
Estimated time
25 to 40 min
Packages
pandas, numpy, statsmodels, patsy
Expected output
A regression or inference table with coefficients, uncertainty, and short interpretation notes.
Learning goals
Common errors
Dataset path helper
import pandas as pd
df = pd.read_stata("/data/BWGHT.DTA")
df.head()