I am running three models comparing a Random Effects model, a Fixed Effects Model and a Fixed Effects Instrumental Variable model. For the FE regressions I am using xtivreg, which drops singleton groups. I would like to use the same data for the RE models. My number of observations should be the same for all three regressions. The RE regressions include singleton groups so N is higher. I have tried using e(sample) which did not work. I would like to drop singleton groups. I have tried:
bys panelvar: drop if _N ==1 This also did not work as, it dropped more observations than singleton groups detected and causes the difference between my FE regressions and RE rgression observations to be even larger. Not sure how to go about this, any suggestions? Thanks!
Related Posts with How to deal with Singleton Groups
Durbin Wu Hausman TestHello, i am struggling with interpreting results from Durbin-Wu Hausman Test for Pooled OLS and fi…
Creating all matched pairs Code: clear all set obs 50 generate id1 = . replace id1 = 1 if _n > 0 & _n < 10 replace …
How to transform this kind of data to panel dataHi everyone, I have a dataset like follows, MMM US Equity MMM US Equity MMM US Equity ABBN SW Eq…
Merging two datasets - m:mDear Stata Users, Below I have a sample of two datasets: set1 and set2. I need to merge them. The p…
boottest: just as wild, 10X fasterAppendix A.2 of the paper about boottest describes an opportunity to speed up the program's construc…
Subscribe to:
Post Comments (Atom)
0 Response to How to deal with Singleton Groups
Post a Comment