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
graph pie with some of percentagesHow to display the fraction when percentage is above 20%, I know how to display all percentages Cod…
Rolling regression or loops - missing valuesDear All I have a peculiar issue I wish to share with you, in the hope of receiving some advice. I …
stripplot specificationsDear colleagues I have a variable named Total Compensation1 and another called Affiliationindex1 (f…
Oaxaca decomposition for nonlinear regression (nldecompose)Hello readers, I am trying to decompose (using Ben Jann’s nldecompose) differences in the probabilit…
Export browse table to ExcelHi there, is there a command that exports the whole data currently in memory to Excel? Practically,…
Subscribe to:
Post Comments (Atom)
0 Response to ppmlhdfe, keepsingleton
Post a Comment