Hi all,
I am running regressions where the dependent variable is count variable (positive integer). The data structure is panel.
I first used negative binomial regression (xtnbreg command in stata). I then tried quasi-maximum likelihood estimation (xtdpdqml command in stata).
However, the number of observations included in the regressions significantly drops when I use xtdpdqml (compared to when I use xtnbreg).
When I set panel and time variable (xtset), stata says that
panel variable: ID (unbalanced)
time variable: year, 1960 to 2010, but with gaps
delta: 1 unit
In xtnbreg,
the notes from the results are
note: 198 groups (198 jobs) dropped because of only one ops per group
note: 288 groups (1478 jobs) dropped because of all zero outcomes
Number of obs = 2,636
Number of groups = 263
In xtdpdqml,
the note from the results is
note: 244 groups are dropped due to gaps or insufficient number of observations
Number of obs = 1,891
Number of groups = 266
How can the number of observations (and number of groups) for xtnbreg and xtdpdqml different?
Thanks for the help in advance.
I am running regressions where the dependent variable is count variable (positive integer). The data structure is panel.
I first used negative binomial regression (xtnbreg command in stata). I then tried quasi-maximum likelihood estimation (xtdpdqml command in stata).
However, the number of observations included in the regressions significantly drops when I use xtdpdqml (compared to when I use xtnbreg).
When I set panel and time variable (xtset), stata says that
panel variable: ID (unbalanced)
time variable: year, 1960 to 2010, but with gaps
delta: 1 unit
In xtnbreg,
the notes from the results are
note: 198 groups (198 jobs) dropped because of only one ops per group
note: 288 groups (1478 jobs) dropped because of all zero outcomes
Number of obs = 2,636
Number of groups = 263
In xtdpdqml,
the note from the results is
note: 244 groups are dropped due to gaps or insufficient number of observations
Number of obs = 1,891
Number of groups = 266
How can the number of observations (and number of groups) for xtnbreg and xtdpdqml different?
Thanks for the help in advance.
Comment