Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you run fixed effects or set check_rank=False in IV2SLS? #368

Open
ArturoSbr opened this issue Nov 6, 2021 · 1 comment
Open

Can you run fixed effects or set check_rank=False in IV2SLS? #368

ArturoSbr opened this issue Nov 6, 2021 · 1 comment

Comments

@ArturoSbr
Copy link

I have a panel with multiple time periods per entity. I would like to run IV2SLS with entity effects as well as other effects.

Normally, in PanelOLS, I would set entity_effects=True and other_effects=df['other_effect'] to use the fixed effects that I need. However, these parameters do not seem to be present in IV2SLS. How can this be done?

If this has not been implemented yet, is there a way to set check_rank=False like you can in a PanelOLS estimation?

I tried to create my own fixed effects by hand using pandas.get_dummies. However, the estimation stops because one of my matrices does not have full rank.

@bashtage
Copy link
Owner

You could probably purch the FE from your Y, Z and X, and then run standard IV on the purged data..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants