Skip to content

v0.5

Compare
Choose a tag to compare
@s3alfisc s3alfisc released this 13 May 20:30
· 728 commits to master since this release
cfc6bf9

IV Support

  • Includes very basic support for IV estimation with one endogenous variable and one instrument.
  • Inference: iid, HC1-3, CRV1.

Syntax for IV:

import pyfixest as pf
import numpy as np
from pyfixest.utils import get_data

data = get_data()

fixest = pf.Fixest(data = data)
fixest.feols("Y~X1 | csw0(X2, X3) | X1 ~ Z1", vcov = {'CRV1':'group_id'})
fixest.summary()

# ###
# 
# Model:  IV
# Dep. var.:  Y 
# Inference:  {'CRV1': 'group_id'}
# Observations:  1998
# 
#            Estimate  Std. Error    t value     Pr(>|t|)
# Intercept -3.941293    0.221354 -17.805377 2.442491e-15
#        X1 -0.265817    0.261940  -1.014803 3.203217e-01
# ---
# ###
# ...

What's Changed

Full Changelog: v0.4.0...v0.5