Economics Asked by Anisha Garg on August 10, 2021
I am trying to estimate vote shares of different parties. So, suppose I have 4 parties, each having its own column in the data set. Hence, the sum would be tending to 1. Now, if a party does not contest in a particular area, then the vote share for that area is ‘.’.
So, I have 4 equations –
sureg (voteshare_party1 voteshare_party2 voteshare_party3 vote share_party4 = X_variables i.fixedeffectvariable1 i.fixedeffectvariable2)
What I want to do is remove NAs separately for each equation, like it would have happened with reghdfe
. But I need to use sureg
because the error terms are correlated. Do you have any suggestions for this? Or any research paper which did something similar?
I am using Stata. In R, I used systemfit() but the estimates I am getting from Stata and R vary widely. I am happy to use any method given my estimates are consistent.
I really appreciate any suggestions / literature on this. And am happy to share more context.
You don't need to use sureg. The benefit of SURE is smaller standard errors, but you could just estimate separate regressions. This is what I would advise. Are the independent variables the same in each regression? If so, then there is no efficiency gain in SURE at all, and separate regressions is what you should use.
Your syntax for sureg seems incorrect, you want: sureg (depvar1 varlist1) (depvar2 varlist2) . . . (depvarN varlistN ).
You could replace missing with 0, that's imperfect, but something to think about.
Correct answer by Michael Gmeiner on August 10, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP