Dear Statalist,
I am puzzled as to why regressions drop panels that have only one identical obs per group. When I run the code in the bottom, only the regression results from -xtpoisson,fe- produces a message "note: 552 groups (552 obs) dropped because of only one obs per group," while in -xtreg,fe- those dropped panels are included. The error note means (in my own data sample) that the dependent variable of those dropped groups is identical over the sample period.
Both regressions utilize fixed effects, though they are of different characteristics (linear vs non-linear). Is there any way I can understand why one regression includes all but the other omits panels that have the same dependent variable for the entire period?
----------------------------------------------------------------------------------------------------------------
webuse nlswork
xtset idcode
xi: xtreg ln_wage ttl_exp tenure i.year , fe
xi: xtpoisson ln_wage ttl_exp tenure i.year , fe
----------------------------------------------------------------------------------------------------------------
Regards,
Paul
I am puzzled as to why regressions drop panels that have only one identical obs per group. When I run the code in the bottom, only the regression results from -xtpoisson,fe- produces a message "note: 552 groups (552 obs) dropped because of only one obs per group," while in -xtreg,fe- those dropped panels are included. The error note means (in my own data sample) that the dependent variable of those dropped groups is identical over the sample period.
Both regressions utilize fixed effects, though they are of different characteristics (linear vs non-linear). Is there any way I can understand why one regression includes all but the other omits panels that have the same dependent variable for the entire period?
----------------------------------------------------------------------------------------------------------------
webuse nlswork
xtset idcode
xi: xtreg ln_wage ttl_exp tenure i.year , fe
xi: xtpoisson ln_wage ttl_exp tenure i.year , fe
----------------------------------------------------------------------------------------------------------------
Regards,
Paul
Comment