<?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 Calculating standardised incidence ratio from observed and expected event rates. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-standardised-incidence-ratio-from-observed-and/m-p/787733#M38613</link>
    <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to calculate the standardised incidence ratio using event rates observed in a cohort of patients during our study and comparing that to expected rates in the background population of an outcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data file can be loaded using the code below, and contains age group (in 5 years intervals), follow up time in the study per age group expressed as person-year, the number of events observed in our study, and finally, the expected rates of the event of interest in the background population (these numbers are taken from the Australian Bureau of Statistics).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Study;
infile cards dlm=" 	"; 
input AgeGroup PersonYear ObservedEvents ExpectedRate;
datalines;
0	3.187542779	0	0.0000010000
5	17.83367557	0	0.0000010000
10	105.2190281	0	0.0000000000
15	228.3169062	0	0.0000010000
20	345.8637919	1	0.0000011667
25	347.238193	2	0.0000010000
30	325.2368241	0	0.0000015714
35	289.4476386	5	0.0000030323
40	217.0006845	2	0.0000056774
45	237.1403149	0	0.0000133548
50	268.3819302	3	0.0000255161
55	296.0999316	3	0.0000468065
60	228.3620808	2	0.0000705806
65	166.2388775	3	0.0001121935
70	90.23819302	1	0.0001589355
75	49.30732375	0	0.0002208065
80	23.21560575	2	0.0002692903
85	10.38877481	0	0.0003176452
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Basically, you can use the follow-up time in person-year and multiply it by the expected event rate to get the number of expected events in the study population, and from there calculate the standardised incidence ratio using the approach described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://epiville.ccnmtl.columbia.edu/interactive/sir.html" target="_blank"&gt;https://epiville.ccnmtl.columbia.edu/interactive/sir.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;However, doing this manual calculation has a number of disadvantages, such as not (directly) getting the 95% confidence intervals and p-value .&lt;/P&gt;
&lt;P&gt;I have been doing some reading including experimenting with proc stdrate, but I cannot figure out how to use proc stdrate on my dataset. From what I understand you need follow up time and events in the background population (rather than the rates) to calculate SIR.&lt;/P&gt;
&lt;P&gt;I am quite stuck here, I cannot get the population number/ age distribution data for Australia to use in my calculation. I wonder if anyone could please assist in implementing stdrate or any other SAS procedure to calculate SIR from the table above?&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Dec 2021 06:27:17 GMT</pubDate>
    <dc:creator>ammarhm</dc:creator>
    <dc:date>2021-12-30T06:27:17Z</dc:date>
    <item>
      <title>Calculating standardised incidence ratio from observed and expected event rates.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-standardised-incidence-ratio-from-observed-and/m-p/787733#M38613</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to calculate the standardised incidence ratio using event rates observed in a cohort of patients during our study and comparing that to expected rates in the background population of an outcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data file can be loaded using the code below, and contains age group (in 5 years intervals), follow up time in the study per age group expressed as person-year, the number of events observed in our study, and finally, the expected rates of the event of interest in the background population (these numbers are taken from the Australian Bureau of Statistics).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Study;
infile cards dlm=" 	"; 
input AgeGroup PersonYear ObservedEvents ExpectedRate;
datalines;
0	3.187542779	0	0.0000010000
5	17.83367557	0	0.0000010000
10	105.2190281	0	0.0000000000
15	228.3169062	0	0.0000010000
20	345.8637919	1	0.0000011667
25	347.238193	2	0.0000010000
30	325.2368241	0	0.0000015714
35	289.4476386	5	0.0000030323
40	217.0006845	2	0.0000056774
45	237.1403149	0	0.0000133548
50	268.3819302	3	0.0000255161
55	296.0999316	3	0.0000468065
60	228.3620808	2	0.0000705806
65	166.2388775	3	0.0001121935
70	90.23819302	1	0.0001589355
75	49.30732375	0	0.0002208065
80	23.21560575	2	0.0002692903
85	10.38877481	0	0.0003176452
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Basically, you can use the follow-up time in person-year and multiply it by the expected event rate to get the number of expected events in the study population, and from there calculate the standardised incidence ratio using the approach described here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://epiville.ccnmtl.columbia.edu/interactive/sir.html" target="_blank"&gt;https://epiville.ccnmtl.columbia.edu/interactive/sir.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;However, doing this manual calculation has a number of disadvantages, such as not (directly) getting the 95% confidence intervals and p-value .&lt;/P&gt;
&lt;P&gt;I have been doing some reading including experimenting with proc stdrate, but I cannot figure out how to use proc stdrate on my dataset. From what I understand you need follow up time and events in the background population (rather than the rates) to calculate SIR.&lt;/P&gt;
&lt;P&gt;I am quite stuck here, I cannot get the population number/ age distribution data for Australia to use in my calculation. I wonder if anyone could please assist in implementing stdrate or any other SAS procedure to calculate SIR from the table above?&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 06:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-standardised-incidence-ratio-from-observed-and/m-p/787733#M38613</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2021-12-30T06:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating standardised incidence ratio from observed and expected event rates.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-standardised-incidence-ratio-from-observed-and/m-p/787861#M38623</link>
      <description>&lt;P&gt;See the Getting Started example in the PROC STDRATE documentation which shows how the SMR can be computed. While that example has event counts and person-year values in the reference population data set, you can get the same SMR estimate in that example if you create a rate variable in the reference data set (rate=event/pyear*100000;) and then replacing the EVENT= and TOTAL= options with the RATE= option in the REFERENCE statement. Specify the new rate variable in the RATE= option.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 21:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-standardised-incidence-ratio-from-observed-and/m-p/787861#M38623</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-12-30T21:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating standardised incidence ratio from observed and expected event rates.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-standardised-incidence-ratio-from-observed-and/m-p/787965#M38639</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;worked fine&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 01:17:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-standardised-incidence-ratio-from-observed-and/m-p/787965#M38639</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2022-01-01T01:17:06Z</dc:date>
    </item>
  </channel>
</rss>

