sas code for trend analysis for rate (incidence)

Reply
New Contributor
Posts: 4

sas code for trend analysis for rate (incidence)

I got yearly rates with sas code below:

 

proc genmod data=cdi;

 class year sex age_group / param=glm;

model cdiff= year sex age_group / type3 dist=poisson link=log offset=log_discharge;

estimate "rate: year=2003" intercept 1 year 1 0 0 0 0 /e

.........;run;

 

I would appreciate sas codes (or references) for trend analyses.  Using Cochran armitage test would be appropriate (I am familiar with this).  

Regular Contributor
Posts: 161

Re: sas code for trend analysis for rate (incidence)

the cochran armitage trend test is from proc freq, as follows:


ods output trendtest=trendtest ;
proc freq data=cdi;
  tables cdiff*year/ trend measures cl;
run;

--------------
blog: papersandprograms.com
Ask a Question
Discussion stats
  • 1 reply
  • 195 views
  • 0 likes
  • 2 in conversation