☑ This topic is solved.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-15-2022 01:47 PM
(812 views)
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"
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content