<?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 make PROC FREQ can calculate the Relative Risk for the column with 0 counts in a column? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/295470#M15750</link>
    <description>&lt;P&gt;I think there is a typo in what you presented, or (unfortunately) you have missed&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;'s point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P2 =n21/n1 = 1, (the denominator is n1 not n2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The point is that since one column is all zeroes, PROC FREQ will not calculate any statistics, including relative risk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 11:42:49 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-08-31T11:42:49Z</dc:date>
    <item>
      <title>How to make PROC FREQ can calculate the Relative Risk for the column with 0 counts in a column?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/294424#M15677</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use PROC FREQ to calculate the Realtive risk between two groups. But when I run, I found there is one column with 0 counts for both rows. That is&amp;nbsp;I have the data with n12=n22=0 counts (denoted in the manual).Therefore the PROC FREQ did not calculate any statistics for this frequency table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;However, per the below manual, SAS should be able to calculate the Relative risk at least. Does anybody know how to do to make it calculate this relative risk at least? Any option to make SAS work? Or you have any good idea? many thanks.&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Q1.jpg" alt="Q1.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/4725iE771010C28D1A2E4/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Q1.jpg" alt="Q1.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/4724i6ABFA9ECF40EFFC1/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 15:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/294424#M15677</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2016-08-26T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to make PROC FREQ can calculate the Relative Risk for the column with 0 counts in a column?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/294464#M15681</link>
      <description>&lt;P&gt;Notice in the caluculation that&amp;nbsp;p1 and p2 are defined with division by n1 and n2. Your data would have n2=0. Since division by 0 is undefined then the relative risk is undefined. i.e. Does not exist for your data.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/294464#M15681</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-26T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make PROC FREQ can calculate the Relative Risk for the column with 0 counts in a column?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/294677#M15705</link>
      <description>&lt;P&gt;I am afraid I did not get your point.&lt;/P&gt;
&lt;P&gt;P1 is n11/n1.=1; P2=n21/n2.=1;&lt;/P&gt;
&lt;P&gt;We don't use n.2=0 at all. How do you mean that the denominator =0?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 02:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/294677#M15705</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2016-08-29T02:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to make PROC FREQ can calculate the Relative Risk for the column with 0 counts in a column?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/294679#M15706</link>
      <description>&lt;P&gt;The data in my question is as below:&lt;/P&gt;
&lt;P&gt;How could the relative risk is not computable by SAS PROC FREQ? Not unerstand.&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Question 3.jpg" alt="Question 3.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/4743iFD914BA6DF6AE057/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 02:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/294679#M15706</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2016-08-29T02:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to make PROC FREQ can calculate the Relative Risk for the column with 0 counts in a column?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/295470#M15750</link>
      <description>&lt;P&gt;I think there is a typo in what you presented, or (unfortunately) you have missed&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;'s point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P2 =n21/n1 = 1, (the denominator is n1 not n2).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The point is that since one column is all zeroes, PROC FREQ will not calculate any statistics, including relative risk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 11:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/295470#M15750</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-08-31T11:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make PROC FREQ can calculate the Relative Risk for the column with 0 counts in a column?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/297172#M15833</link>
      <description>&lt;P&gt;I am afraid I can't agree with you that there was a typos. I read and wrote from the manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BUt I think the key point is that SAS set such conditioin that when once column sum is 0 then no statistics will be calculated, even they can compute. Like the Relative risk. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 12:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/297172#M15833</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2016-09-08T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make PROC FREQ can calculate the Relative Risk for the column with 0 counts in a column?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/297482#M15839</link>
      <description>&lt;P&gt;One additional observation here. &amp;nbsp;See &lt;A href="http://support.sas.com/kb/23003" target="_self"&gt;this note&lt;/A&gt; on computing relative risks. &amp;nbsp;You can use the log-binomial approach with augmented data as shown there to get an estimate and a confidence interval for the relative risk. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data a;&lt;BR /&gt;do g=0,1;&lt;BR /&gt;do i=1 to 10;&lt;BR /&gt;y=1; f=10000*10/100010; output;&lt;BR /&gt;y=0; f=1*10/100010; output;&lt;BR /&gt;end; end;&lt;BR /&gt;run;&lt;BR /&gt;proc genmod;&lt;BR /&gt;model y(event="1")=g / dist=bin link=log;&lt;BR /&gt;estimate 'rr' g 1 ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 20:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-make-PROC-FREQ-can-calculate-the-Relative-Risk-for-the/m-p/297482#M15839</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2016-09-09T20:09:24Z</dc:date>
    </item>
  </channel>
</rss>

