version 7.0 log using C:\WDDtext\log\8.12.Framingham.log, replace * 8.12.Framingham.log * * Analysis of the effects of gender and body mass index * on coronary heart disease using person-year data from the * Framingham Heart Study. * use C:\WDDtext\8.12.Framingham.dta, clear * * Regress CHD against gender using model 8.9. * glm chd_cnt male, family(poisson) link(log) lnoffset(pt_yrs) eform table bmi_gr, contents(sum pt_yrs) row table bmi_gr, contents(sum chd_cnt) row * * Regress CHD against BMI using model 8.10. * xi: glm chd_cnt i.bmi_gr, family(poisson) link(log) lnoffset(pt_yrs) eform log close