<?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 Logistic Regression &amp;gt; Differencce Between Proc LOGISTIC and GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-gt-Differencce-Between-Proc-LOGISTIC-and/m-p/256776#M13561</link>
    <description>&lt;P&gt;I've been trying to replicate the results of a logistic regression programmed using Proc LOGISTIC with GENMOD. I believe the options and model specification are the same but some of my parameter estimates are differing around the 4th decimal. The code using Proc LOGISTIC is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data = mydata descending;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class treat (param = ref ref = "A") country / param = glm;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model resp = treat country var1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code for Proc GENMOD is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data = mydata descending;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class treat (param = ref ref = "A") country / param = glm;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model resp = treat country var1 / dist = bin link = logit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any reason why the results would differ using the above code? I'm using SAS v9.4.&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>Tue, 15 Mar 2016 14:06:56 GMT</pubDate>
    <dc:creator>muzlowe</dc:creator>
    <dc:date>2016-03-15T14:06:56Z</dc:date>
    <item>
      <title>Logistic Regression &gt; Differencce Between Proc LOGISTIC and GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-gt-Differencce-Between-Proc-LOGISTIC-and/m-p/256776#M13561</link>
      <description>&lt;P&gt;I've been trying to replicate the results of a logistic regression programmed using Proc LOGISTIC with GENMOD. I believe the options and model specification are the same but some of my parameter estimates are differing around the 4th decimal. The code using Proc LOGISTIC is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data = mydata descending;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class treat (param = ref ref = "A") country / param = glm;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model resp = treat country var1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code for Proc GENMOD is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data = mydata descending;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class treat (param = ref ref = "A") country / param = glm;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model resp = treat country var1 / dist = bin link = logit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any reason why the results would differ using the above code? I'm using SAS v9.4.&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>Tue, 15 Mar 2016 14:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-gt-Differencce-Between-Proc-LOGISTIC-and/m-p/256776#M13561</guid>
      <dc:creator>muzlowe</dc:creator>
      <dc:date>2016-03-15T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic Regression &gt; Differencce Between Proc LOGISTIC and GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-gt-Differencce-Between-Proc-LOGISTIC-and/m-p/256786#M13563</link>
      <description>&lt;P&gt;They use different algorithms to maximize the likelihood, so you might not be able to get an exact match.&amp;nbsp; BY default, PROC LOGISTIC uses a Fisher scoring algorithm, whereas GENOMD uses a ridge-stabilized Newton-Raphson algorithm.&amp;nbsp; You could try setting TECHNIQUE=NEWTON in the MODEL statement for PROC LOGISTIC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another difference is that GENMOD estimates a scale parameter. You could try using the NOSCALE option and see if that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, I wouldn't worry much about differences in the fourth decimal place, since that is probably much smaller than the standard errors.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 14:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-Regression-gt-Differencce-Between-Proc-LOGISTIC-and/m-p/256786#M13563</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-15T14:28:11Z</dc:date>
    </item>
  </channel>
</rss>

