<?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: How to compute relative risk when having 0 frequency cell in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376583#M90406</link>
    <description>&lt;P&gt;I'm still getting infinite relative risk with the ZERO option.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2017 14:51:33 GMT</pubDate>
    <dc:creator>GordonC_SAS</dc:creator>
    <dc:date>2017-07-17T14:51:33Z</dc:date>
    <item>
      <title>How to compute relative risk when having 0 frequency cell</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376164#M90252</link>
      <description>&lt;P&gt;I have two binary variables: treatment arm (arm 1, arm 2) and event (Yes, No) for each participant. I transformed my participant-level data into a long format summary data (so now I have 3 variables: count, arm and event). My goal is to compute the relative risk of event in arm 1 comparing to arm 2, and the exact confidence interval. The problem is the frequency of the event in arm 2 is 0 (no one had event in arm 2) so I always get infinite RR. And upper bound of my confidence interal goes to infinite as well. Is there a way to avoid this problem? I learned that proc freq would add 0.5 to each frequency to ensure that the statistics is defined when there is 0 frequency table cells but I couldn't figure out the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=data1;&lt;BR /&gt;weight Count;&lt;BR /&gt;tables arm*event ;&lt;BR /&gt;exact RELRISK;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 21:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376164#M90252</guid>
      <dc:creator>GordonC_SAS</dc:creator>
      <dc:date>2017-07-14T21:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to compute relative risk when having 0 frequency cell</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376167#M90254</link>
      <description>&lt;P&gt;Can you share the cell counts you are getting in the 2x2 table?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 22:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376167#M90254</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-14T22:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to compute relative risk when having 0 frequency cell</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376222#M90276</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=data1;
weight Count/ZERO;
tables arm*event ;
exact RELRISK;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Jul 2017 11:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376222#M90276</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-07-15T11:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to compute relative risk when having 0 frequency cell</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376577#M90404</link>
      <description>&lt;P&gt;my cell count frequencies are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;arm 1, event = yes: 5&lt;/P&gt;&lt;P&gt;arm 1, event = no : &amp;nbsp;70&lt;/P&gt;&lt;P&gt;arm 2, event = Yes: 0&lt;/P&gt;&lt;P&gt;arm 2, event = No: 26&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:45:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376577#M90404</guid>
      <dc:creator>GordonC_SAS</dc:creator>
      <dc:date>2017-07-17T14:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to compute relative risk when having 0 frequency cell</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376583#M90406</link>
      <description>&lt;P&gt;I'm still getting infinite relative risk with the ZERO option.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2017 14:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compute-relative-risk-when-having-0-frequency-cell/m-p/376583#M90406</guid>
      <dc:creator>GordonC_SAS</dc:creator>
      <dc:date>2017-07-17T14:51:33Z</dc:date>
    </item>
  </channel>
</rss>

