------------------------------------------------------------------------------------------------- log: C:\MyDocs\MPH\Text\SecondEdition\WebDoFiles\8.7.Framingham.log log type: text opened on: 3 Jan 2008, 17:33:44 . * 8.7.Framingham.log . * . * Simple Poisson regression analysis of the effect of gender on . * coronary heart disease in the Framingham Heart Study. . * . use C:\WDDtext\8.7.Framingham.dta, clear . list +----------------------+ | chd per_yrs male | |----------------------| 1. | 650 61773 0 | 2. | 823 42688 1 | +----------------------+ . glm chd male , family(poisson) link(log) lnoffset(per_yrs) Iteration 0: log likelihood = -8.4353186 Iteration 1: log likelihood = -8.4330708 Iteration 2: log likelihood = -8.4330708 Generalized linear models No. of obs = 2 Optimization : ML Residual df = 0 Scale parameter = 1 Deviance = 6.52811e-14 (1/df) Deviance = . Pearson = 3.23538e-21 (1/df) Pearson = . Variance function: V(u) = u [Poisson] Link function : g(u) = ln(u) [Log] AIC = 10.43307 Log likelihood = -8.433070809 BIC = 6.53e-14 ------------------------------------------------------------------------------ | OIM chd | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- male | .6055324 .0524741 11.54 0.000 .5026851 .7083797 _cons | -4.554249 .0392232 -116.11 0.000 -4.631125 -4.477373 per_yrs | (exposure) ------------------------------------------------------------------------------ . lincom male,irr ( 1) [chd]male = 0 ------------------------------------------------------------------------------ chd | IRR Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- (1) | 1.832227 .0961444 11.54 0.000 1.653154 2.030698 ------------------------------------------------------------------------------ . log close log: C:\MyDocs\MPH\Text\SecondEdition\WebDoFiles\8.7.Framingham.log log type: text closed on: 3 Jan 2008, 17:33:45 -----------------------------------------------------------------------------------------------