<?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 logistics vs chi square in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924820#M45940</link>
    <description>&lt;P&gt;Hello all, I'm running an univariate logistic model. With the following syntax I'm getting that the risk of event if 70% lower in patients who smoke. However, when I switch the reference category for smoker variable, I get almost the same odds: 0.313 (0.207 - 0.471) vs 0.336 (0.233 - 0.486)&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I have explored the data and performed a chi-square test, and I did not find any differences between the categories (which makes sense). This is the contingency table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV align="center"&gt;Table&amp;nbsp;of&amp;nbsp;SMOKER&amp;nbsp;by&amp;nbsp;EVENTSMOKER EVENT0 1 TotalNoYesTotal &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;113&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;40.79&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;74.83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;54.07&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13.72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25.17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;55.88&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;151&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;54.51&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;96&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;34.66&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;76.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;45.93&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10.83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23.81&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;44.12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;126&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;45.49&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;75.45&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24.55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;277&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Does anybody know why this happens? Why does the logistic model fail? Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 13:10:55 GMT</pubDate>
    <dc:creator>lredon</dc:creator>
    <dc:date>2024-04-18T13:10:55Z</dc:date>
    <item>
      <title>Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924820#M45940</link>
      <description>&lt;P&gt;Hello all, I'm running an univariate logistic model. With the following syntax I'm getting that the risk of event if 70% lower in patients who smoke. However, when I switch the reference category for smoker variable, I get almost the same odds: 0.313 (0.207 - 0.471) vs 0.336 (0.233 - 0.486)&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I have explored the data and performed a chi-square test, and I did not find any differences between the categories (which makes sense). This is the contingency table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV align="center"&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV align="center"&gt;Table&amp;nbsp;of&amp;nbsp;SMOKER&amp;nbsp;by&amp;nbsp;EVENTSMOKER EVENT0 1 TotalNoYesTotal &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;113&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;40.79&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;74.83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;54.07&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13.72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25.17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;55.88&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;151&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;54.51&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;96&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;34.66&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;76.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;45.93&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10.83&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23.81&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;44.12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;126&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;45.49&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;209&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;75.45&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;24.55&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;277&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Does anybody know why this happens? Why does the logistic model fail? Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924820#M45940</guid>
      <dc:creator>lredon</dc:creator>
      <dc:date>2024-04-18T13:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924821#M45941</link>
      <description>&lt;P&gt;Impossible to read this table. Make a screen capture and then click on the "Insert Photos" icon here and include it in your reply. Also show us the PROC FREQ code used. Please also show us the code (as text) and the output (as a screen capture) from PROC LOGISTIC.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924821#M45941</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-04-18T13:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924826#M45942</link>
      <description>&lt;P&gt;Hi, I attach the contingency table using proc freq and also de code and results for the logistic model:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lredon_0-1713446376565.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95648i272F45CE7DCB1750/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lredon_0-1713446376565.png" alt="lredon_0-1713446376565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;proc logistic with smoker=No:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=An.data;&lt;BR /&gt;class SMOKER(ref='No') / param = REF;&lt;BR /&gt;model EVENT(event='1')= SMOKER/selection=none noint ctable rsquare outroc=rocdata2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lredon_1-1713446470143.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95649i2E4E22E4D59A1091/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lredon_1-1713446470143.png" alt="lredon_1-1713446470143.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic with reference category smoker=Yes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=An.data;&lt;BR /&gt;class SMOKER(ref='Yes') / param = REF;&lt;BR /&gt;model EVENT(event='1')= SMOKER/selection=none noint ctable rsquare outroc=rocdata2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lredon_2-1713446565971.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95650iBBD2747826C11903/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lredon_2-1713446565971.png" alt="lredon_2-1713446565971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924826#M45942</guid>
      <dc:creator>lredon</dc:creator>
      <dc:date>2024-04-18T13:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924829#M45943</link>
      <description>&lt;P&gt;The ratios between the events for the Smoker=Yes and Smoker=No (38/113 and 30/96) are vary similar so would expect only a small change in the odds ratio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might compare that 38/113 = 0.336283&amp;nbsp; and 30/96= 0.3125 to the point estimate of your ratio. See any similarity after rounding to 3 decimal places?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 13:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924829#M45943</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-18T13:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924831#M45944</link>
      <description>Okay I get that, but how is it possible that the smoker variable is statistically significative inside my logistic model when the % of subjects in each category is so similar between subjects with event and subjects with no event?</description>
      <pubDate>Thu, 18 Apr 2024 14:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924831#M45944</guid>
      <dc:creator>lredon</dc:creator>
      <dc:date>2024-04-18T14:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924834#M45945</link>
      <description>&lt;P&gt;Your code with PARAM=REF and NOINT estimates the odds in the SMOKE=Yes category which is .2381/.7619. You can estimate the odds ratio if you just change to PARAM=GLM. The results from the following give the same results for the odds ratio from LOGISTIC and FREQ. With NOINT, the two parameter estimates are the log odds for the two SMOKE groups. Their difference is the log odds ratio. Exponentiating the difference is the odds ratio.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a; 
do smoke='n','y';
do event=0,1;
 input f@@;
 output;
end; end;
datalines;
113 38
96 30
;
proc logistic data=a;
freq f;
class SMOKE(ref='n') / param = glm;
model EVENT(event='1')= SMOKE/ noint ;
run;
proc freq data=a;
weight f;
table smoke*event/relrisk;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Apr 2024 14:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924834#M45945</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-04-18T14:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924839#M45947</link>
      <description>&lt;P&gt;Your chi square references a variable &lt;STRONG&gt;event6_cat&lt;/STRONG&gt; and your model references a variable &lt;STRONG&gt;event&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would have expected to see the same variable in both outputs for the comparison.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465361"&gt;@lredon&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I attach the contingency table using proc freq and also de code and results for the logistic model:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lredon_0-1713446376565.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95648i272F45CE7DCB1750/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lredon_0-1713446376565.png" alt="lredon_0-1713446376565.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;proc logistic with smoker=No:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=An.data;&lt;BR /&gt;class SMOKER(ref='No') / param = REF;&lt;BR /&gt;model EVENT(event='1')= SMOKER/selection=none noint ctable rsquare outroc=rocdata2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lredon_1-1713446470143.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95649i2E4E22E4D59A1091/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lredon_1-1713446470143.png" alt="lredon_1-1713446470143.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic with reference category smoker=Yes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=An.data;&lt;BR /&gt;class SMOKER(ref='Yes') / param = REF;&lt;BR /&gt;model EVENT(event='1')= SMOKER/selection=none noint ctable rsquare outroc=rocdata2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lredon_2-1713446565971.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95650iBBD2747826C11903/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lredon_2-1713446565971.png" alt="lredon_2-1713446565971.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 14:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924839#M45947</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-04-18T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924843#M45948</link>
      <description>Sorry both are the same variable, just used a different when I paste the code here.</description>
      <pubDate>Thu, 18 Apr 2024 15:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924843#M45948</guid>
      <dc:creator>lredon</dc:creator>
      <dc:date>2024-04-18T15:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924888#M45949</link>
      <description>Did you see my earlier response? It should answer your concern.</description>
      <pubDate>Thu, 18 Apr 2024 17:33:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924888#M45949</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-04-18T17:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924941#M45951</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt; said , delete option NOINT , you would get the same result from PROC FREQ .&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 03:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924941#M45951</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-19T03:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistics vs chi square</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924956#M45953</link>
      <description>Thank you so much! Very useful</description>
      <pubDate>Fri, 19 Apr 2024 08:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistics-vs-chi-square/m-p/924956#M45953</guid>
      <dc:creator>lredon</dc:creator>
      <dc:date>2024-04-19T08:35:41Z</dc:date>
    </item>
  </channel>
</rss>

