Dear Statalisters,
y is my dependent variable (it takes values 0,1,2,3,4,...,45). xlist includes my independent variables. id is my unique company identifier.
When I run firm fixed effects using the following command
xtreg y $xlist, robust i(id) fe
I get 189,714 observations.
However, when I run Poisson fixed effects using the following command
xtpoisson y $xlist, robust i(id) fe
I get only 189,587 observations and Stata returns this message:
" note: 1 group (127 obs) dropped because of all zero outcomes "
Does anyone know why I might get fewer observations in the second regression?? Both regressions are firm fixed effects and the variables are identical. I can't see why the number of obs. is different in the two regressions. I would expect e.g. to get 189,587 obs. in both regressions "because of all zero outcomes" as stata says. I think I'm missing something.
Thank you all in advance.
y is my dependent variable (it takes values 0,1,2,3,4,...,45). xlist includes my independent variables. id is my unique company identifier.
When I run firm fixed effects using the following command
xtreg y $xlist, robust i(id) fe
I get 189,714 observations.
However, when I run Poisson fixed effects using the following command
xtpoisson y $xlist, robust i(id) fe
I get only 189,587 observations and Stata returns this message:
" note: 1 group (127 obs) dropped because of all zero outcomes "
Does anyone know why I might get fewer observations in the second regression?? Both regressions are firm fixed effects and the variables are identical. I can't see why the number of obs. is different in the two regressions. I would expect e.g. to get 189,587 obs. in both regressions "because of all zero outcomes" as stata says. I think I'm missing something.
Thank you all in advance.
Comment