<?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: conflicting results between exact p value and confidence limits of OR in exact logistic in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731818#M35518</link>
    <description>Good morning, I placed another post with datalines and codes, for the one&lt;BR /&gt;dataset where I can have data in binomial format (pos / tot), just in case,&lt;BR /&gt;I paste the same codes here. Sorry in case of double posting!! and thank&lt;BR /&gt;you very much. I have been a sas user for 30 years but never used this&lt;BR /&gt;support...&lt;BR /&gt;&lt;BR /&gt;data risk;&lt;BR /&gt;&lt;BR /&gt;input riskfact1 riskfact2 tot pos;&lt;BR /&gt;&lt;BR /&gt;datalines;&lt;BR /&gt;&lt;BR /&gt;0 0 36 0&lt;BR /&gt;&lt;BR /&gt;0 1 93 3&lt;BR /&gt;&lt;BR /&gt;1 0 13 0&lt;BR /&gt;&lt;BR /&gt;1 1 54 11&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc logistic data=risk exactonly;&lt;BR /&gt;&lt;BR /&gt;TITLE ' two-sided ';&lt;BR /&gt;&lt;BR /&gt;title2 'Conflicting 95% CLs and exact p-value';&lt;BR /&gt;&lt;BR /&gt;model pos / tot = riskfact1 riskfact2;&lt;BR /&gt;&lt;BR /&gt;exact riskfact1 riskfact2 / estimate=both outdist = dist;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc logistic data=risk exactonly;&lt;BR /&gt;&lt;BR /&gt;TITLE ' one-sided ';&lt;BR /&gt;&lt;BR /&gt;title2 ' 95% CLs not affected by onesided option';&lt;BR /&gt;&lt;BR /&gt;model pos / tot = riskfact1 riskfact2;&lt;BR /&gt;&lt;BR /&gt;exact riskfact1 riskfact2 / estimate=both outdist = dist&lt;BR /&gt;onesided;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Apr 2021 06:55:02 GMT</pubDate>
    <dc:creator>amannelli</dc:creator>
    <dc:date>2021-04-07T06:55:02Z</dc:date>
    <item>
      <title>conflicting results between exact p value and confidence limits of OR in exact logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731528#M35503</link>
      <description>&lt;P&gt;Good morning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the EXACT&amp;nbsp; statement in logistic regression to analyse data with quasi complete separation&amp;nbsp; of results (none of the individuals in the unexposed group was a case). I obtained the median unbiased estimate of the logistic regression parameter. The exact p value was 0.062 but the parameter 95% CL's were 0.18; Infinity. When calculating the odds ratio, the lower limit was greater than 1 (1.2). Furhermore, very disturbingly, after including the ONESIDED option in the EXACT statement, while the p-value was reduce by half, the&amp;nbsp;95% CL's of the same OR were not changed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alessandro Mannelli&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 07:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731528#M35503</guid>
      <dc:creator>amannelli</dc:creator>
      <dc:date>2021-04-06T07:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: conflicting results between exact p value and confidence limits of OR in exact logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731620#M35511</link>
      <description>&lt;P&gt;AS an absolute minimum you should show your code. Then we at least have a chance to see the possible effects of options.&lt;/P&gt;
&lt;P&gt;Better would be to provide the diagnostic summaries and the actual output along with the code and possibly the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code is needed because just Proc Logistic has 20+ statements that interact. Plus Proc Logistic is not the only procedure that can perform logistic regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code and log entries are best posted into text boxes opened on the the forum with the &amp;lt;/&amp;gt; icon to preserve text positions. The message windows will reformat text.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 15:43:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731620#M35511</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-06T15:43:19Z</dc:date>
    </item>
    <item>
      <title>Conflicting 95% CL and exact p values in exact logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731817#M35523</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Good morning.&amp;nbsp; &amp;nbsp; I used the EXACT&amp;nbsp; statement in logistic regression to analyse data with quasi complete separation&amp;nbsp; of results (none of the individuals in the unexposed group was a case). I obtained the median unbiased estimate of the logistic regression parameter. The exact p value was 0.055 but the parameter 95% CL's were 0.18; Infinity. When calculating the odds ratio, the lower limit was greater than 1 (1.24). Furhermore, very disturbingly, after including the ONESIDED option in the EXACT statement, while the p-value was reduce by half, the&amp;nbsp;95% CL's of the same OR were not changed.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I paste here codes including datalines: 95% CL and exact p value for riskfactor2 are conflicting, furthermore, CL are not affected by onesided option (p-value is) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;data risk;&lt;BR /&gt;input riskfact1 riskfact2 tot pos;&lt;BR /&gt;datalines;&lt;BR /&gt;0 0 36 0&lt;BR /&gt;0 1 93 3&lt;BR /&gt;1 0 13 0&lt;BR /&gt;1 1 54 11&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc logistic data=risk exactonly;&lt;BR /&gt;TITLE ' two-sided ';&lt;BR /&gt;title2 'Conflicting 95% CLs and exact p-value';&lt;BR /&gt;model pos / tot = riskfact1 riskfact2;&lt;BR /&gt;exact riskfact1 riskfact2 / estimate=both outdist = dist;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc logistic data=risk exactonly;&lt;BR /&gt;TITLE ' one-sided ';&lt;BR /&gt;title2 ' 95% CLs not affected by onesided option';&lt;BR /&gt;model pos / tot = riskfact1 riskfact2;&lt;BR /&gt;exact riskfact1 riskfact2 / estimate=both outdist = dist onesided;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you very much for your help&amp;nbsp; &amp;nbsp; Alessandro Mannelli&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 06:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731817#M35523</guid>
      <dc:creator>amannelli</dc:creator>
      <dc:date>2021-04-07T06:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: conflicting results between exact p value and confidence limits of OR in exact logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731818#M35518</link>
      <description>Good morning, I placed another post with datalines and codes, for the one&lt;BR /&gt;dataset where I can have data in binomial format (pos / tot), just in case,&lt;BR /&gt;I paste the same codes here. Sorry in case of double posting!! and thank&lt;BR /&gt;you very much. I have been a sas user for 30 years but never used this&lt;BR /&gt;support...&lt;BR /&gt;&lt;BR /&gt;data risk;&lt;BR /&gt;&lt;BR /&gt;input riskfact1 riskfact2 tot pos;&lt;BR /&gt;&lt;BR /&gt;datalines;&lt;BR /&gt;&lt;BR /&gt;0 0 36 0&lt;BR /&gt;&lt;BR /&gt;0 1 93 3&lt;BR /&gt;&lt;BR /&gt;1 0 13 0&lt;BR /&gt;&lt;BR /&gt;1 1 54 11&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc logistic data=risk exactonly;&lt;BR /&gt;&lt;BR /&gt;TITLE ' two-sided ';&lt;BR /&gt;&lt;BR /&gt;title2 'Conflicting 95% CLs and exact p-value';&lt;BR /&gt;&lt;BR /&gt;model pos / tot = riskfact1 riskfact2;&lt;BR /&gt;&lt;BR /&gt;exact riskfact1 riskfact2 / estimate=both outdist = dist;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc logistic data=risk exactonly;&lt;BR /&gt;&lt;BR /&gt;TITLE ' one-sided ';&lt;BR /&gt;&lt;BR /&gt;title2 ' 95% CLs not affected by onesided option';&lt;BR /&gt;&lt;BR /&gt;model pos / tot = riskfact1 riskfact2;&lt;BR /&gt;&lt;BR /&gt;exact riskfact1 riskfact2 / estimate=both outdist = dist&lt;BR /&gt;onesided;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Apr 2021 06:55:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731818#M35518</guid>
      <dc:creator>amannelli</dc:creator>
      <dc:date>2021-04-07T06:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: conflicting results between exact p value and confidence limits of OR in exact logistic</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731834#M35520</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't looked at your code (yet).&lt;/P&gt;
&lt;P&gt;But next time you provide code (I tell it as you indicate you are new to this forum), use the 'Insert SAS Code' button (the running man in a square) on the toolbar beneath the string 'Body'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That way your code preserves structure and formatting and there's some useful highlighting and colors. And it's much more dense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 09:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731834#M35520</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-04-07T09:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conflicting 95% CL and exact p values in exact logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731835#M35524</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only the Exact Odds Ratios for 'riskfact2' are identical in both outputs (logistic1 and logistic2), and that makes sense as the first output clearly mentions:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Note: * indicates a median unbiased estimate and a one-sided p-value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Also, have a look at this paper:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Paper 3018-2019&lt;BR /&gt;Predicting Inside the Dead Zone of Complete Separation in Logistic Regression&lt;BR /&gt;Robert Derr, SAS Institute Inc., Cary, NC&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3018-2019.pdf" target="_blank"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3018-2019.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 09:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731835#M35524</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-04-07T09:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conflicting 95% CL and exact p values in exact logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731837#M35525</link>
      <description>&lt;P&gt;On top of my previous response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also have a look at this communities entry:&lt;/P&gt;
&lt;P&gt;Extrem odd ratio with firth logistic regression&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728253" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Extrem-odd-ratio-with-firth-logistic-regression/m-p/728253&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 09:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731837#M35525</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-04-07T09:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Conflicting 95% CL and exact p values in exact logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731838#M35526</link>
      <description>Thank you very much. My problem, however, is that the exact p value is = 0.055 (p&amp;gt;0.05, accept the null hypothesis) whereas the 95% CI lower limit of the odds ratio is 1.24 (being &amp;gt; 1 I would reject the null hypothesis)&lt;BR /&gt;&lt;BR /&gt;second, I realise that the ONESIDED option only affects the exact pa value, not the 95% CL's since they are the same as in the two-sided defalt for riskfactor2&lt;BR /&gt;&lt;BR /&gt;Thank you and best regrds&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Apr 2021 09:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731838#M35526</guid>
      <dc:creator>amannelli</dc:creator>
      <dc:date>2021-04-07T09:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conflicting 95% CL and exact p values in exact logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731967#M35528</link>
      <description>&lt;P&gt;You didn't say which release you are using, but in the current release, SAS 9.4 TS1M7, the p-value reported for riskfact2 is 0.0277 with confidence interval (0.2147, inf) and these are the same regardless of the ONESIDED option. This is because that estimate is a median unbiased estimate. The confidence interval for its odds ratio is (1.240, inf) and again is unchanged by the ONESIDED option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should carefully read the ending part of the "Details:Exact conditional logistic regression" in the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_logistic_details67.htm&amp;amp;locale=en" target="_self"&gt;documentation of the current SAS release&lt;/A&gt;. There it tells you that for a median unbiased estimate, the p-value is always a one-sided p-value. Since riskfact1 is not a median unbiased estimate, its p-value (0.0021) is a two-sided p-value, and with the ONESIDED option, the one-sided p-value is 0.0011.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 16:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/731967#M35528</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-04-07T16:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Conflicting 95% CL and exact p values in exact logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/732167#M35536</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;SPAN&gt;StatDave_sas,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now I understand that the ONESIDED option affected the p-value, but not the 95% CL, which is one-side even when such an option is not included.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alessandro Mannelli&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 08:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/conflicting-results-between-exact-p-value-and-confidence-limits/m-p/732167#M35536</guid>
      <dc:creator>amannelli</dc:creator>
      <dc:date>2021-04-08T08:31:11Z</dc:date>
    </item>
  </channel>
</rss>

