-
Login or Register
- Log in with
. poisson y1 i.unit Iteration 0: log likelihood = -527164.51 Iteration 1: log likelihood = -527164.51 Poisson regression Number of obs = 28 LR chi2(1) = 1711.13 Prob > chi2 = 0.0000 Log likelihood = -527164.51 Pseudo R2 = 0.0016 ------------------------------------------------------------------------------ y1 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- 2.unit | .0500969 .0012113 41.36 0.000 .0477228 .0524709 _cons | 11.46154 .0008671 1.3e+04 0.000 11.45984 11.46324 ------------------------------------------------------------------------------ . estat gof Deviance goodness-of-fit = 1053963 Prob > chi2(26) = 0.0000 Pearson goodness-of-fit = 982949 Prob > chi2(26) = 0.0000 . nbreg y1 i.unit Fitting Poisson model: Iteration 0: log likelihood = -527164.51 Iteration 1: log likelihood = -527164.51 Fitting constant-only model: Iteration 0: log likelihood = -349.63352 Iteration 1: log likelihood = -346.3941 Iteration 2: log likelihood = -345.79765 Iteration 3: log likelihood = -345.79765 Fitting full model: Iteration 0: log likelihood = -345.7788 Iteration 1: log likelihood = -345.77879 Negative binomial regression Number of obs = 28 LR chi2(1) = 0.04 Dispersion = mean Prob > chi2 = 0.8460 Log likelihood = -345.77879 Pseudo R2 = 0.0001 ------------------------------------------------------------------------------ y1 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- 2.unit | .0500969 .2578459 0.19 0.846 -.4552717 .5554655 _cons | 11.46154 .1823246 62.86 0.000 11.10419 11.81889 -------------+---------------------------------------------------------------- /lnalpha | -.764898 .249315 -1.253546 -.2762496 -------------+---------------------------------------------------------------- alpha | .4653814 .1160266 .2854905 .7586235 ------------------------------------------------------------------------------ LR test of alpha=0: chibar2(01) = 1.1e+06 Prob >= chibar2 = 0.000 .
* Example generated by -dataex-. To install: ssc install dataex clear input byte unit long y1 1 160922 1 57651 1 187935 1 13388 1 126092 1 57127 1 65543 1 158292 1 54349 1 185688 1 12209 1 131718 1 55670 1 63299 2 163611 2 62008 2 188211 2 18002 2 133423 2 62538 2 71836 2 164593 2 59152 2 189614 2 18898 2 129850 2 63540 2 72927 end
poisson <count_depvar> i.group
Leave a comment: