Age Standardized rate - SAS Support Communities
ods graphics on;
proc stdrate data=studyData
refdata=Refpop1
method=direct
stat=rate(mult=100000)
effect=ratio
plots(only)
cl=gamma
;
population event=death total=pop;
reference total=stdpop;
strata agegrp year / smr stats missing;
run;
ods graphics off;
This is my code.
I want to get the rate for each age group and year.
Similar to the other post I get an overall age standardized rate for all years. How can I attain the rate for each age group and the speciifc year and not just the overall rate? I have 6 age groupings.
My data looks like this
studydata
year pop agegrp death
2001 65000 "0-9" 5
Refop
year stdpop agegrp
2001 67000 "0-9"
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.