<?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 for a table 2xK with a reference group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871835#M344449</link>
    <description>"I need to compute the RR for the outcome "1" in B vs A; C vs A; D vs A."&lt;BR /&gt;Then you need make three sas datasets(2x2 table) for RR separatedly .&lt;BR /&gt;And &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; posted a very useful URL, check it out:&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/23/003.html" target="_blank"&gt;https://support.sas.com/kb/23/003.html&lt;/A&gt;</description>
    <pubDate>Tue, 25 Apr 2023 11:57:57 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-04-25T11:57:57Z</dc:date>
    <item>
      <title>Relative risk for a table 2xK with a reference group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871438#M344251</link>
      <description>&lt;P&gt;Hi All!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to compute the relative risk for a 2x5 table, having the lowest group as the reference value.&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 17:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871438#M344251</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2023-04-23T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Relative risk for a table 2xK with a reference group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871539#M344300</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
Relative Rick is only calculated for 2x2 tables.
2xK table I think you mean multiple 2x2 tables,
*/
data have;
call streaminit(123);
do page=1 to 20;
 do obs=1 to 100;
  row=rand('bern',0.4);
  col=rand('bern',0.6);
  output;
 end;
end;
run;


proc freq data=have;
table page*row*col/relrisk(column=1)  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2023 11:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871539#M344300</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-04-24T11:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Relative risk for a table 2xK with a reference group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871707#M344407</link>
      <description>&lt;P&gt;Thank You very much Ksharp for Your prompt and clear reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually I have a binary outcome (0/1) and a categorical predictor with four mutually exclusive values (0/1/2/3).&lt;/P&gt;&lt;P&gt;When a run a proc freq, I obtain a 2x4 table.&lt;/P&gt;&lt;P&gt;Should I create different columns for each of the four values of the predictor variable?&lt;/P&gt;&lt;P&gt;Then should I run a proc freq as in Your example?&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;table outcome*pred1*pred2*pred3*pred4&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You in advance&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 20:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871707#M344407</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2023-04-24T20:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Relative risk for a table 2xK with a reference group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871711#M344410</link>
      <description>&lt;P&gt;trying to be clearer...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Binary outcome 0/1&lt;/P&gt;&lt;P&gt;Four class of renal damage A/B/C/D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to compute the RR for the outcome "1" in B vs A; C vs A; D vs A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope is clearer now.&lt;/P&gt;&lt;P&gt;Similar to a proc logistic with A as the reference value. Only needing to compute RR instead of OR&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 20:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871711#M344410</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2023-04-24T20:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Relative risk for a table 2xK with a reference group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871835#M344449</link>
      <description>"I need to compute the RR for the outcome "1" in B vs A; C vs A; D vs A."&lt;BR /&gt;Then you need make three sas datasets(2x2 table) for RR separatedly .&lt;BR /&gt;And &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; posted a very useful URL, check it out:&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/23/003.html" target="_blank"&gt;https://support.sas.com/kb/23/003.html&lt;/A&gt;</description>
      <pubDate>Tue, 25 Apr 2023 11:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Relative-risk-for-a-table-2xK-with-a-reference-group/m-p/871835#M344449</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-04-25T11:57:57Z</dc:date>
    </item>
  </channel>
</rss>

