12.07.2015 Views

Notes on Poisson Regression and Some Extensions

Notes on Poisson Regression and Some Extensions

Notes on Poisson Regression and Some Extensions

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

. nbreg childsNegative binomial regressi<strong>on</strong> Number of obs = 1501LR chi2(0) = 0.00Prob > chi2 = .Log likelihood = -2710.1185 Pseudo R2 = 0.0000------------------------------------------------------------------------------childs | Coef. Std. Err. z P>|z| [95% C<strong>on</strong>f. Interval]-------------+----------------------------------------------------------------_c<strong>on</strong>s | .6623651 .0224627 29.49 0.000 .618339 .7063912-------------+----------------------------------------------------------------/lnalpha | -1.419918 .1278525 -1.670504 -1.169331-------------+----------------------------------------------------------------alpha | .2417339 .0309063 .1881522 .3105746------------------------------------------------------------------------------Likelihood-ratio test of alpha=0: chibar2(01) = 108.81 Prob>=chibar2 = 0.000. gen idnum = _n. xtpois childs, i(idnum)R<strong>and</strong>om effects u_i ~ Gamma Obs per group: min = 1avg = 1.0max = 1Wald chi2(0) = .Log likelihood = -2710.1185 Prob > chi2 = .------------------------------------------------------------------------------childs | Coef. Std. Err. z P>|z| [95% C<strong>on</strong>f. Interval]-------------+----------------------------------------------------------------_c<strong>on</strong>s | .6623651 .0224627 29.49 0.000 .618339 .7063912-------------+----------------------------------------------------------------/lnalpha | -1.419918 .1278525 -1.670504 -1.169331-------------+----------------------------------------------------------------alpha | .2417339 .0309063 .1881522 .3105746------------------------------------------------------------------------------Likelihood-ratio test of alpha=0: chibar2(01) = 108.81 Prob>=chibar2 = 0.000The test <strong>on</strong> the alpha parameter is a test of overdispersi<strong>on</strong>. This suggests an improved fit fromthis model. The variance of the r<strong>and</strong>om effect v is 0.24 2 (given by alpha). As this goes to 0, themodel approaches the usual Poiss<strong>on</strong> regressi<strong>on</strong> model. In fact, here the results do not changemuch from the original model. Note that the alpha in the Stata output is not the same α fromthe gamma distributi<strong>on</strong>. Recall that the α parameter from the gamma distributi<strong>on</strong> is thereciprocal of the variance of the r<strong>and</strong>om effect, i.e., the reciprocal of the quantity reported asalpha by Stata, or 4.14. recall that the observed mean <strong>and</strong> variance of y are, respectively, 1.94<strong>and</strong> 2.79. Under the negative binomial regressi<strong>on</strong> model, the estimated mean is the same <strong>and</strong> thevariance is ̂µ + ̂µ/α = 1.94 + 1.94(0.242) = 2.41, which is getting a good deal closer to 2.79.Likelihood ratio tests can also be carried out of the current model against the null model. Thelog L from the corresp<strong>on</strong>ding Poiss<strong>on</strong> regressi<strong>on</strong> model is −2764.52 compared to a log L of−2710.12 for the negative binomial model. The likelihood ratio χ 2 for is 108.81 with 1 df, whichis exactly what is reported in the output. Note that the st<strong>and</strong>ard errors are larger than in theoriginal Poiss<strong>on</strong> regressi<strong>on</strong> model due to this adjustment to the model, so more c<strong>on</strong>servativesignificance tests will follow.12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!