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.

29 30 190 4 49 0.6023 0.0188 0.5643 0.638130 31 137 2 35 0.5922 0.0198 0.5523 0.629831 32 100 3 36 0.5705 0.0227 0.5248 0.613632 33 61 2 31 0.5455 0.0278 0.4894 0.598033 34 28 0 16 0.5455 0.0278 0.4894 0.598034 35 12 0 11 0.5455 0.0278 0.4894 0.598035 36 1 0 1 0.5455 0.0278 0.4894 0.5980-------------------------------------------------------------------------------We can use the methods described above to analyze individual data like these. We can obtaingood results using log linear models for tables. C<strong>on</strong>sider the following table of race by age ofevent (agecat = 1 if < 20, 2 otherwise ) that was derived from these data.. list race agecat D T+------------------------------------+race agecat D T--------------------------------------1. Hispanic 1 31 5082.682. Hispanic 2 36 896.433. Black 1 143 8252.044. Black 2 103 1336.375. White 1 40 12801.896. White 2 38 2773.93+------------------------------------+The variables D i <strong>and</strong> R i denote the number of events in each category <strong>and</strong> the pers<strong>on</strong> years ofexposure to risk for the subjects in that category. The empirical rates are then. We assume D i tobe a Poiss<strong>on</strong> variable with mean µ i . Using the covariates agecat <strong>and</strong> race as x, we can write aloglinear model in log µ ilog(µ i )λ i R i = x ′ iβ + log R iwith log R i as an “offset” term whose coefficient is fixed at 1.. xi: glm D i.agecat i.race, f(p) offset(logT)Generalized linear models No. of obs = 6Optimizati<strong>on</strong> : ML: Newt<strong>on</strong>-Raphs<strong>on</strong> Residual df = 2Scale parameter = 1Deviance = 2.167700605 (1/df) Deviance = 1.08385Pears<strong>on</strong> = 2.176320642 (1/df) Pears<strong>on</strong> = 1.08816Variance functi<strong>on</strong>: V(u) = u[Poiss<strong>on</strong>]Link functi<strong>on</strong> : g(u) = ln(u) [Log]St<strong>and</strong>ard errors : OIMLog likelihood = -18.57892505 AIC = 7.526308BIC = -1.415818333------------------------------------------------------------------------------D | Coef. Std. Err. z P>|z| [95% C<strong>on</strong>f. Interval]-------------+----------------------------------------------------------------_Iagecat_2 | 1.557508 .1017639 15.31 0.000 1.358055 1.756962_Irace_2 | .8540021 .1378224 6.20 0.000 .5838751 1.124129_Irace_3 | -.870819 .1666529 -5.23 0.000 -1.197453 -.5441853_c<strong>on</strong>s | -4.937157 .1306748 -37.78 0.000 -5.193275 -4.68103918

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

Saved successfully!

Ooh no, something went wrong!