I am trying to calculate the Incidence rate ratio (IRR) using proc stdrate. In particular I want to obtain the following statistics:
- Number of observations and the expected number of observations in the exposed group ;
- Number of observations and the expected number of observations in the non-exposed group ;
- IRR and the 95% CI.
I have gone through the proc stdrate user’s guide however I have been unable to work out how to extract these statistics.
The code I have used is:
proc stdrate data = exposed_reduced refdata = control_reduced
method = indirect
stat=rate
effect=ratio
;
population event=observed_total total=pyear_total ;
reference event=observed_total total=pyear_total ;
strata post_strata rank_strata agegrp_cancer_1 year_cancer / effect ;
run;
Any guidance would be much appreciated.