in example https://support.sas.com/resources/papers/proceedings13/423-2013.pdf
for the indirect standardization, how can I get the standardized rate estimate 2.6829 (Figure 19 Standardized Rate Estimates (Indirect Standardization)) by programme. Thank you very much.
Hello @dimsum and welcome to the SAS Support Communities!
If you run the code from page 12 of the paper (three steps), you'll find that estimate in the last table (headed "Standardized Rate") of the output, assuming that SAS/STAT is installed. After each of the two data steps make sure that the inline data were read correctly. When I copied the data step code into my SAS session the columns were no longer aligned, so I decided to adapt the INPUT statements:
input Age :$5. Event :comma. PYear :comma.;
If you need the standardized rate estimate in a SAS dataset for further processing, add an ODS OUTPUT statement before (or in) the PROC STDRATE step:
ods output stdrate=sr;
Then variable StdRate of dataset sr will contain the estimate.
Hello @dimsum and welcome to the SAS Support Communities!
If you run the code from page 12 of the paper (three steps), you'll find that estimate in the last table (headed "Standardized Rate") of the output, assuming that SAS/STAT is installed. After each of the two data steps make sure that the inline data were read correctly. When I copied the data step code into my SAS session the columns were no longer aligned, so I decided to adapt the INPUT statements:
input Age :$5. Event :comma. PYear :comma.;
If you need the standardized rate estimate in a SAS dataset for further processing, add an ODS OUTPUT statement before (or in) the PROC STDRATE step:
ods output stdrate=sr;
Then variable StdRate of dataset sr will contain the estimate.
That same example now appears in the Getting Started section of the PROC STDRATE documentation in the SAS/STAT User's Guide. In that documentation, you can find the formulas for computing the indirectly standardized rate. See the "Details: Indirect Standardization" section.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.