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
Writing a Program for repetitive calculationDear Statalist colleagues, I am keep calculating same formula for more than 10 variables and wanted…
Scatter plot troubles! Hi! I'm trying to analyse some statistics and was having trouble figuring out why my scatter plots …
Marginal Effect of an Interaction Term after Logit (i.dummy#c.continous)Dear All, Here is my data. I am running a logit model and tried to get marginal effects. Here is m…
Generating four new variables out of one variable in a panel datasetHello, I'm trying to create four new variables in the following dataset: Code: input long pidp fl…
Stata 17 - bayesmh not replicating a simple example already done in Stata 15Dear Forum Members, I'm trying to replicate in Stata 17 this (quite simple) example from Stata Yout…
Subscribe to:
Post Comments (Atom)
0 Response to How to deal with Singleton Groups
Post a Comment