<?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 proc logistic: discrepancies in estimates/ORs and p-vals/confidence intervals in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965902#M48493</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc logistic data = test;
	class predictor (ref = "1");
	model outcome (event = "1") = predictor; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;RESULTS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reubendon_0-1746565281481.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106766i0F6C326749E83DDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="reubendon_0-1746565281481.png" alt="reubendon_0-1746565281481.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Question 1: Why are my odds ratios different from exp(estimate)? For example, when predictor = "0", coefficient = 0.5660, and using OR = exp(estimate), exp(0.5660) = 1.76 but the calculated odds ratio estimate is 2.226.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Question 2: The coefficient for predictor = "2" is significant, but a value of OR = 1 spans the 95% Wald confidence interval. If this coefficient is significant, shouldn't 1 not be in the CI?&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 May 2025 21:02:03 GMT</pubDate>
    <dc:creator>reubendon</dc:creator>
    <dc:date>2025-05-06T21:02:03Z</dc:date>
    <item>
      <title>proc logistic: discrepancies in estimates/ORs and p-vals/confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965902#M48493</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc logistic data = test;
	class predictor (ref = "1");
	model outcome (event = "1") = predictor; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;RESULTS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reubendon_0-1746565281481.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106766i0F6C326749E83DDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="reubendon_0-1746565281481.png" alt="reubendon_0-1746565281481.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Question 1: Why are my odds ratios different from exp(estimate)? For example, when predictor = "0", coefficient = 0.5660, and using OR = exp(estimate), exp(0.5660) = 1.76 but the calculated odds ratio estimate is 2.226.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Question 2: The coefficient for predictor = "2" is significant, but a value of OR = 1 spans the 95% Wald confidence interval. If this coefficient is significant, shouldn't 1 not be in the CI?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 21:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965902#M48493</guid>
      <dc:creator>reubendon</dc:creator>
      <dc:date>2025-05-06T21:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic: discrepancies in estimates/ORs and p-vals/confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965904#M48494</link>
      <description>&lt;P&gt;Take a look at this usage note.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/23/087.html" target="_blank"&gt;23087 - Odds ratio estimate is not equal to the exponentiated parameter estimate - exp(Beta)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Essentially, the default parameterization for the CLASS variables involves effects coding and thus the odds ratios are no longer merely exp(beta) and interpretation of the parameter estimates is no longer simply the log odds comparing the level vs the reference.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 21:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965904#M48494</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2025-05-06T21:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic: discrepancies in estimates/ORs and p-vals/confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965911#M48496</link>
      <description>&lt;P&gt;If you add the option / param=ref&amp;nbsp; to the end of your CLASS statement, you will find that the odds ratios equal exp(estimate), i.e.,&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class predictor (ref='1') / param=ref;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There's a good explanation of what's going on here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.oarc.ucla.edu/sas/faq/in-proc-logistic-why-arent-the-coefficients-consistent-with-the-odds-ratios/" target="_blank"&gt;https://stats.oarc.ucla.edu/sas/faq/in-proc-logistic-why-arent-the-coefficients-consistent-with-the-odds-ratios/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 00:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965911#M48496</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2025-05-07T00:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic: discrepancies in estimates/ORs and p-vals/confidence intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965916#M48497</link>
      <description>For your second question. p-value is highly depended on the size of sample.&lt;BR /&gt;if your size of sample is large enough, you would always get &amp;lt;.0001 . &lt;BR /&gt;It has nothing to do with CI of OR or estimated coefficient.&lt;BR /&gt;And p-value is said for alpha=0.05, if you set alpha=0.0001, you would also get H0 is not significant conclusion.</description>
      <pubDate>Wed, 07 May 2025 01:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-discrepancies-in-estimates-ORs-and-p-vals/m-p/965916#M48497</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-07T01:22:54Z</dc:date>
    </item>
  </channel>
</rss>

