<?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: Relative Risk in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698882#M33713</link>
    <description>&lt;P&gt;Thank you this is an excellent explanation!&lt;/P&gt;</description>
    <pubDate>Sat, 14 Nov 2020 16:51:28 GMT</pubDate>
    <dc:creator>corbinLA</dc:creator>
    <dc:date>2020-11-14T16:51:28Z</dc:date>
    <item>
      <title>Relative Risk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698828#M33708</link>
      <description>&lt;P&gt;Hello All! I have been computing relative risk&amp;nbsp; for cohort data with the Proc freq Tables command and have been a little confused by the meaning of the two different risk values. When I get the relative risk (Column 1) I understand that this refers to the intersection of the first row and the first column. But what does the column 2 risk refer to? Is this the intersection of the first row and the second column or the second row and the second column? Any help is much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 22:13:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698828#M33708</guid>
      <dc:creator>corbinLA</dc:creator>
      <dc:date>2020-11-13T22:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698865#M33710</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/356999"&gt;@corbinLA&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The relative risk estimates of PROC FREQ are ratios of row proportions ("&lt;FONT face="courier new,courier"&gt;Row Pct / 100&lt;/FONT&gt;") in the 2x2 table with the first row in the numerator and the second row in the denominator. If you denote these proportions for the first column with p&lt;SUB&gt;1&lt;/SUB&gt; (row 1) and p&lt;SUB&gt;2&lt;/SUB&gt; (row 2) and for the second column with q&lt;SUB&gt;1&lt;/SUB&gt; (row 1) and q&lt;SUB&gt;2&lt;/SUB&gt; (row 2), then p&lt;SUB&gt;1&lt;/SUB&gt;/p&lt;SUB&gt;2&lt;/SUB&gt; is the (estimated) "&lt;FONT face="courier new,courier"&gt;Relative Risk (Column 1)&lt;/FONT&gt;" and q&lt;SUB&gt;1&lt;/SUB&gt;/q&lt;SUB&gt;2&lt;/SUB&gt;&amp;nbsp;= (1-p&lt;SUB&gt;1&lt;/SUB&gt;)/(1-p&lt;SUB&gt;2&lt;/SUB&gt;) is the (estimated) "&lt;FONT face="courier new,courier"&gt;Relative Risk (Column 2)&lt;/FONT&gt;."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Fictitious "cohort study" with 100,000 smokers and 100,000 non-smokers, who (by the end of the study) develop some sort of condition (&lt;FONT face="courier new,courier"&gt;cond=1&lt;/FONT&gt;) with probabilities 0.25+0.45=0.7 and 0.25, respectively.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
call streaminit(27182818);
do smoker='Y','n';
  do _n_=1 to 100000;
    cond=rand('table',0.25+0.45*(smoker='Y'));
    output;
  end;
end;
run;

proc freq data=have;
tables smoker*cond / relrisk;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table of smoker by cond

smoker     cond

Frequency|
Percent  |
Row Pct  |
Col Pct  |       1|       2|  Total
---------+--------+--------+
Y        |  69938 |  30062 | 100000
         |  34.97 |  15.03 |  50.00
         |  69.94 |  30.06 |
         |  73.73 |  28.59 |
---------+--------+--------+
n        |  24918 |  75082 | 100000
         |  12.46 |  37.54 |  50.00
         |  24.92 |  75.08 |
         |  26.27 |  71.41 |
---------+--------+--------+
Total       94856   105144   200000
            47.43    52.57   100.00


Statistics for Table of smoker by cond

                  Odds Ratio and Relative Risks

Statistic                        Value       95% Confidence Limits
------------------------------------------------------------------
Odds Ratio                      7.0100        6.8733        7.1495
Relative Risk (Column 1)        2.8067        2.7746        2.8392
Relative Risk (Column 2)        0.4004        0.3964        0.4045

Sample Size = 200000

&lt;/LI-CODE&gt;
&lt;P&gt;SAS doesn't know if &lt;FONT face="courier new,courier"&gt;cond=1&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;cond=2&lt;/FONT&gt; is the condition of interest, so it estimates the relative risks (true values: &lt;FONT face="courier new,courier"&gt;0.7/0.25=2.8, (1-0.7)/(1-0.25)=0.4&lt;/FONT&gt;, estimates: &lt;FONT face="courier new,courier"&gt;0.69938/0.24918=2.8067, 0.30062/0.75082=0.4004&lt;/FONT&gt;) for both.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 10:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698865#M33710</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-14T10:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698882#M33713</link>
      <description>&lt;P&gt;Thank you this is an excellent explanation!&lt;/P&gt;</description>
      <pubDate>Sat, 14 Nov 2020 16:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698882#M33713</guid>
      <dc:creator>corbinLA</dc:creator>
      <dc:date>2020-11-14T16:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Relative Risk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698884#M33714</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also -- if you want to display the relative risk for only one column, you can use the RELRISK&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_freq_syntax08.htm&amp;amp;locale=en#statug.freq.freqrrcolumn" target="_self"&gt;COLUMN=&lt;/A&gt;&amp;nbsp;option to specify which column. For example, this displays the column 1 relative risk together with score confidence limits.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;tables smoker * cond / relrisk(column=1 cl=score);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 Nov 2020 17:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Relative-Risk/m-p/698884#M33714</guid>
      <dc:creator>Watts</dc:creator>
      <dc:date>2020-11-14T17:08:26Z</dc:date>
    </item>
  </channel>
</rss>

