<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Group option with PROC STDRATE when using indirect method in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Group-option-with-PROC-STDRATE-when-using-indirect-method/m-p/271539#M58308</link>
    <description>&lt;P&gt;For future reference, in case anyone else has the same issue, the&amp;nbsp;solution below is what I was really after. Its output is a single table with statistics for each area. This is very helpful if you have many areas. I'm gradually learning how to use the ODS!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods exclude all;
proc stdrate data=counts refdata=aggregate
			method=indirect
			stat=rate(mult=100)
			plots=smr
			;
population event=death total=denom;
reference event=death total=denom;
strata Age;
by area;
ods output smr=Smr_Cs;
run;
ods exclude none;

proc print data=Smr_Cs; 
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 May 2016 20:49:33 GMT</pubDate>
    <dc:creator>Adam_Black</dc:creator>
    <dc:date>2016-05-18T20:49:33Z</dc:date>
    <item>
      <title>Group option with PROC STDRATE when using indirect method</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Group-option-with-PROC-STDRATE-when-using-indirect-method/m-p/238269#M55423</link>
      <description>&lt;P&gt;I would like to reproduce this simple example using PROC STDRATE. I do not see any way to specify a group option when using the indirect standardization method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.dartmouthatlas.org/downloads/methods/indirect_adjustment.pdf" target="_self"&gt;http://www.dartmouthatlas.org/downloads/methods/indirect_adjustment.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data counts;
input area $ age $ death  denom ;
datalines;
Area1 65-69 6 500
Area1 70-74 15 300
Area1 75-79 20 200
Area2 65-69 3 300
Area2 70-74 12 300
Area2 75-79  36 400
;&lt;BR /&gt;run;

proc sql;
create table aggregate as 
select age, sum(death) as death, sum(denom) as denom
from counts group by age;
quit;

/* I need an option to group by area  */
proc stdrate data=counts refdata=aggregate
method=indirect
stat=rate(mult=100)
;
population event=death total=denom;
reference event=death total=denom;
strata Age;
run;&lt;/PRE&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 14:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Group-option-with-PROC-STDRATE-when-using-indirect-method/m-p/238269#M55423</guid>
      <dc:creator>Adam_Black</dc:creator>
      <dc:date>2015-12-08T14:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Group option with PROC STDRATE when using indirect method</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Group-option-with-PROC-STDRATE-when-using-indirect-method/m-p/238295#M55426</link>
      <description>If I understand correctly, you're looking for a BY statement.&lt;BR /&gt;&lt;BR /&gt;proc stdrate data=counts refdata=aggregate&lt;BR /&gt;method=indirect&lt;BR /&gt;stat=rate(mult=100)&lt;BR /&gt;;&lt;BR /&gt;BY area;&lt;BR /&gt;population event=death total=denom;&lt;BR /&gt;reference event=death total=denom;&lt;BR /&gt;strata Age;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Dec 2015 15:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Group-option-with-PROC-STDRATE-when-using-indirect-method/m-p/238295#M55426</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-08T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Group option with PROC STDRATE when using indirect method</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Group-option-with-PROC-STDRATE-when-using-indirect-method/m-p/271539#M58308</link>
      <description>&lt;P&gt;For future reference, in case anyone else has the same issue, the&amp;nbsp;solution below is what I was really after. Its output is a single table with statistics for each area. This is very helpful if you have many areas. I'm gradually learning how to use the ODS!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ods exclude all;
proc stdrate data=counts refdata=aggregate
			method=indirect
			stat=rate(mult=100)
			plots=smr
			;
population event=death total=denom;
reference event=death total=denom;
strata Age;
by area;
ods output smr=Smr_Cs;
run;
ods exclude none;

proc print data=Smr_Cs; 
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 May 2016 20:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Group-option-with-PROC-STDRATE-when-using-indirect-method/m-p/271539#M58308</guid>
      <dc:creator>Adam_Black</dc:creator>
      <dc:date>2016-05-18T20:49:33Z</dc:date>
    </item>
  </channel>
</rss>

