Chapter 10, Section 10.3.2
Loglinear (Poisson)
Regression Model
data chd;
infile 'chd.dat';
input smoke bp behavior chd pyrs;
**********************************************************;
* Create offset: Log person years of
follow-up *;
**********************************************************;
logpyrs=log(pyrs);
title1 Loglinear (Poisson) regression model for CHD as a function of Smoking;
title2 Study of Risk Factors for Coronary Heart Disease (CHD);
proc genmod;
model chd = smoke / dist=poisson
link=log offset=logpyrs;
run;
<Selected
Output>
title1 Loglinear (Poisson) regression model for CHD as a function
of;
title2 Smoking, Behavior Type, and Blood Pressure;
title3 Study of Risk Factors for Coronary Heart Disease (CHD);
proc genmod;
model chd = smoke behavior bp /
dist=poisson link=log offset=logpyrs;
run;
<Selected
Output>