Hi,
I am trying to run the negative binomial model for the following model.
ln(di) = ln(ni) + β00 + β10 yeari + ei, i = 1979, …, 1996
where, d = crude death rate, n = person-years at risk and years is from 1979 to 1996. Is this SAS syntax for negative binomial correct?
proc genmod data = AUdeaths;
model year = personyearsatrisk cruderate / offset= year dist=negbin link=log ;
run;
Thanks.
I am trying to run the negative binomial model for the following model.
ln(di) = ln(ni) + β00 + β10 yeari + ei, i = 1979, …, 1996
where, d = crude death rate, n = person-years at risk and years is from 1979 to 1996. Is this SAS syntax for negative binomial correct?
proc genmod data = AUdeaths;
model year = personyearsatrisk cruderate / offset= year dist=negbin link=log ;
run;
Thanks.