<?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: PROC GENMOD ISSUE when computing the exact confidence interval for the relative risk in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354209#M18550</link>
    <description>&lt;P&gt;Thanks Rick. Indeed, this seems to be an issue in SAS versions 9.3M2 and lower (at least tested on 9.2 as well).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2017 17:28:18 GMT</pubDate>
    <dc:creator>GKalema</dc:creator>
    <dc:date>2017-04-27T17:28:18Z</dc:date>
    <item>
      <title>PROC GENMOD ISSUE when computing the exact confidence interval for the relative risk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354082#M18546</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In calculating the relative risk and corresponding exact 95% confidence intervals via exact Poisson regression using a log-linear model, the following scenario works (note that number of cases in group 2 = 1486);&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have1; * number of cases in group 2 = 1486 ;
input total cases group all;
log_total = log(total);
datalines;
14660 1529 1 1
14645 &lt;U&gt;1486&lt;/U&gt; 2 1
;run;&lt;BR /&gt;
proc genmod data=have1 exactonly;
CLASS group(ref='1') all /PARAM=ref;
model cases=group all /DIST=poisson OFFSET=log_total LINK=log;
exact group /estimate outdist=dist ALPHA=0.05;
exactoptions statustime=10 method=NETWORK;
ODS OUTPUT ExactParmEst=estimate ExactTests=ExactTest;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relative risk, lower and upper confidence limits are got by exponentiating the variables "estimate", "LowerCL" and "UpperCL" in the "estimate" dataset output via ODS OUTPUT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HOWEVER, with a very slight change (number of cases = 1485), a computational issue is encountered, namely, "WARNING: Invalid confidence interval detected and set to missing".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have2; * number of cases in group 2 = 1485 ;
input total cases group all;
log_total = log(total);
datalines;
14660   1529  1 1
14645   &lt;U&gt;1485&lt;/U&gt;  2 1
;run;

proc genmod data=have2 exactonly;
CLASS  group(ref='1') all /PARAM=ref;
model cases=group all /DIST=poisson OFFSET=log_total LINK=log ;
exact group /estimate outdist=dist ALPHA=0.05;
exactoptions statustime=10 method=NETWORK;
ODS OUTPUT ExactParmEst=estimate ExactTests=ExactTest;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What could be the issue here? Is this a potential bug in the genmod procedure? How can I solve this? I know a possible work-around is to set the reference group to &lt;EM&gt;group(ref='2')&amp;nbsp;&lt;/EM&gt;which results in the sign of the estimates being flipped. We can back-flip the sign of the estimates and get the needed RR, Lower and Upper limits by exponentiating. But this is just a work-around. What is the solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 12:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354082#M18546</guid>
      <dc:creator>GKalema</dc:creator>
      <dc:date>2017-04-27T12:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD ISSUE when computing the exact confidence interval for the relative risk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354108#M18547</link>
      <description>&lt;P&gt;I ran your programs at SAS 9.4m3 (SAS/STAT 14.2) and the warning does not appear. I assume that this was a problem in an earlier release that has been fixed. I don't know what version of SAS implemented this change, but Technical Support can provide you with that information, and probably additional details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354108#M18547</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-04-27T13:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD ISSUE when computing the exact confidence interval for the relative risk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354209#M18550</link>
      <description>&lt;P&gt;Thanks Rick. Indeed, this seems to be an issue in SAS versions 9.3M2 and lower (at least tested on 9.2 as well).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354209#M18550</guid>
      <dc:creator>GKalema</dc:creator>
      <dc:date>2017-04-27T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD ISSUE when computing the exact confidence interval for the relative risk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354210#M18551</link>
      <description>&lt;P&gt;Glad you zeroed in on the problem. FYI, there have been five releases of SAS since SAS 9.3m2. There are some amazing features in SAS 9.4m4, not only in SAS/STAT but also in the graphics that are available in PROC SGPLOT. I hope you get a chance to upgrade to SAS 9.4m4 or (later this year) SAS 9.4m5.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-ISSUE-when-computing-the-exact-confidence-interval/m-p/354210#M18551</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-04-27T17:34:21Z</dc:date>
    </item>
  </channel>
</rss>

