Dear statalist members,
I am using ppmlhdfe to investigate the bilateral trade flow and have a question about handling singleton issue.
Here is my code:
ppmlhdfe import lndistance lntariff contiguity common_language agree_cu, absorb(imptime exptime, savefe) cluster(impexp) nolog d
- imptime: importer-year pair fixed effect
- exptime: exporter-year pair fixed effect
- impexp: importer-exporter country pair
Specifically, my data has 189 importer countries and 211 exporter countries from 1989 to 2019, yielding 905,138 of total observation number.
However, after the estimation, only 95,827 observations remained.
The stata says that it dropped 809,303 observations \that are either singletons or separated by a fixed effect.
My data set has so many zero values for dependent variable, so I am guessing that it caused so many singletons.
With an option, "keepsingleton", I could keep almost all the observation numbers with no changes in the estimated coefficients.
Stata says that "ReLU method dropped 8 separated observations in 1 iterations
Converged in 17 iterations and 246 HDFE sub-iterations (tol = 1.0e-08)"
Here are my specific questions:
1. Is there anything wrong in my code?
2. Is my ppml estimation with so many singleton meaningful?
3. Can I keep use the "keepsingleton" option for my estimation?
Related Posts with ppmlhdfe, keepsingleton
Calculations based on rankHi everyone, I'm an undergraduate student studying economics and am having trouble with Stata. I'm …
Checking package consistencyDear All, when a user-written package is added to Stata with Code: net from SOMEURL net install SO…
melogit, xtmelogit, meglm with Bernoulli family to include survey weights in the modelDear colleagues, Does any one come across with an aides on how to include a survey weight into the …
Referring to matrix columns and rowsDear All, It should be fairly simply, but I am very confused as to how I should refer to a location …
adjustrcspline and plotting axis/limitsHi all. I've been hunting online for a while now but can't seem to find a good solution for this yet…
Subscribe to:
Post Comments (Atom)
0 Response to ppmlhdfe, keepsingleton
Post a Comment