Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
sasuser63
Calcite | Level 5

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
StatDave
SAS Super FREQ

See the "Standardized rates and risks" item in the list of Frequently Asked-for Statistics (FASTats) in the Important Links section of the Statistical Procedures Community page which points you to this note that describes multiple ways that it can be done. 

View solution in original post

1 REPLY 1
StatDave
SAS Super FREQ

See the "Standardized rates and risks" item in the list of Frequently Asked-for Statistics (FASTats) in the Important Links section of the Statistical Procedures Community page which points you to this note that describes multiple ways that it can be done. 

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is ANOVA?

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.

Discussion stats
  • 1 reply
  • 813 views
  • 1 like
  • 2 in conversation