<?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: Difference between a proc logistic and a genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248336#M13067</link>
    <description>&lt;P&gt;Concerning the FREQ proc, it's used to distinguish the modalities from the variable POIDS which were used to distinguish two subsets that we merged.. I don't understand why you are talking about a link=logit ? I didn't use any.&lt;BR /&gt;&lt;BR /&gt;I'm not really used to it, any suggestion is welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2016 16:54:40 GMT</pubDate>
    <dc:creator>Mishojo</dc:creator>
    <dc:date>2016-02-05T16:54:40Z</dc:date>
    <item>
      <title>Difference between a proc logistic and a genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248322#M13064</link>
      <description>&lt;P&gt;Good morning everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some differences concerning the results from a proc logistic and a proc genmod. Indeed, I've got a modality which seems to be significative with the proc logistic and not with the genmode.&lt;BR /&gt;&lt;BR /&gt;I've already read the post from 2011&amp;nbsp; &lt;A title="Logistic - genmode Different results" href="https://communities.sas.com/t5/SAS-Statistical-Procedures/PROC-LOGISTIC-vs-PROC-GENMOD-different-results/td-p/27599" target="_blank"&gt;FROM HERE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4 and already set the param=glm for the proc logistic.&lt;BR /&gt;&lt;BR /&gt;Here is the codes :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=scorme.visconct; 
class &amp;amp;liste_var_choix./param=glm; 
model CARVPr (event = "1")= &amp;amp;liste_var_choix./selection=stepwise sle=0.05 sls=0.05 ; 
score data=scorme.visconct out=score;
run ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=scorme.visconct; 
class &amp;amp;liste_var_choix.; 
output out=outglm p=pred; 
freq poids; 
model carvpr/poids = &amp;amp;liste_var_choix./d=bin; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the results are the following :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The proc Logistic:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1769iADCC463F5BE47425/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Proc Logistic.png" title="Proc Logistic.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Proc Genmod:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1770iBA3F5CA4B39AF1BC/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Proc Genmod.png" title="Proc Genmod.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, the madality Pnouv is not significative anymore and I can't see why.&lt;/P&gt;&lt;P&gt;For my analysis I use the proc logistic results but i'd like to compare with the genmod result if possible to confirm the model. If ever you'd want me to explain a bit more, don't hesite to ask.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248322#M13064</guid>
      <dc:creator>Mishojo</dc:creator>
      <dc:date>2016-02-05T16:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a proc logistic and a genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248327#M13065</link>
      <description>&lt;P&gt;You have a FREQ statement in GENMOD but not one in LOGISTIC, is that intentional?&lt;/P&gt;
&lt;P&gt;Do you also need the link=logit option in GENMOD?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248327#M13065</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-05T16:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a proc logistic and a genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248336#M13067</link>
      <description>&lt;P&gt;Concerning the FREQ proc, it's used to distinguish the modalities from the variable POIDS which were used to distinguish two subsets that we merged.. I don't understand why you are talking about a link=logit ? I didn't use any.&lt;BR /&gt;&lt;BR /&gt;I'm not really used to it, any suggestion is welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248336#M13067</guid>
      <dc:creator>Mishojo</dc:creator>
      <dc:date>2016-02-05T16:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a proc logistic and a genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248339#M13068</link>
      <description>&lt;P&gt;My question is you're using the same dataset for both models, but you're specifying the models differently between the two procs (event/trials vs outcome).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I use a similar situation with the same input and same specification the model comes out the same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you get the same, or at least very similar results from this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  data drug;
      input drug$ x r n @@;
      datalines;
   A  .1   1  10   A  .23  2  12   A  .67  1   9
   B  .2   3  13   B  .3   4  15   B  .45  5  16   B  .78  5  13
   C  .04  0  10   C  .15  0  11   C  .56  1  12   C  .7   2  12
   D  .34  5  10   D  .6   5   9   D  .7   8  10
   E  .2  12  20   E  .34 15  20   E  .56 13  15   E  .8  17  20
   ;
   run;

     proc genmod data=drug;
      class drug;
      model r/n = x drug / dist = bin
                           link = logit
                           lrci;
   run;

   proc logistic data=drug;
   class drug/param=glm;
   model r/n = x drug;
   run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Feb 2016 17:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248339#M13068</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-05T17:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a proc logistic and a genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248376#M13072</link>
      <description>&lt;P&gt;Indeed, I've got the exact same values with the two proc from your example.&lt;BR /&gt;&lt;BR /&gt;So you think that's it was an issue concerning the parameters used and the method itself ?&lt;BR /&gt;&lt;BR /&gt;The fact is that the event="1" statement is necessary in order to estimate the model correctly, without it the results (the score afterwards) are not logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;EDIT :&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Removing the freq and event statement seems to correct the issue. I'm going to complete the analysis to see if the results are consistent with what I should get.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 19:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248376#M13072</guid>
      <dc:creator>Mishojo</dc:creator>
      <dc:date>2016-02-05T19:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a proc logistic and a genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248380#M13073</link>
      <description>&lt;P&gt;Unfortunately, the results are not correct.&lt;BR /&gt;I'm trying to score the fact of having a premium Visa card (No confidential data), removing the &lt;STRONG&gt;event="1"&lt;/STRONG&gt; statement shows that the women (sfem) have a better score that the men (shom) and I know that it's not logical.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea to correct it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the result of the scores :&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1773iA35A9556A83549A9/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Grille bad.png" title="Grille bad.png" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS : Pcad should also be the one with the highest score.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 19:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248380#M13073</guid>
      <dc:creator>Mishojo</dc:creator>
      <dc:date>2016-02-05T19:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a proc logistic and a genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248388#M13074</link>
      <description>&lt;P&gt;You had a freq variable before. Why not include it in the model now? More importantly, should it be. Find the correct model definition first that meets your data structure then proceed with interpretation/analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You were estimating two different models with your initial code &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 20:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248388#M13074</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-05T20:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between a proc logistic and a genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248396#M13075</link>
      <description>&lt;P&gt;Thank you for your responses.&lt;/P&gt;
&lt;P&gt;The issue was quite easy to correct : I just added an &lt;STRONG&gt;event="1"&lt;/STRONG&gt; statement in the proc genmode (and removed the freq):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=scorme.visconct; &lt;BR /&gt;class &amp;amp;liste_var_choix./param=glm; &lt;BR /&gt;model CARVPr (event = "1")= &amp;amp;liste_var_choix./selection=stepwise sle=0.05 sls=0.05 ; &lt;BR /&gt;score data=scorme.visconct out=score;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;proc genmod data=scorme.visconct; &lt;BR /&gt;class &amp;amp;liste_var_choix.; &lt;BR /&gt;output out=outglm p=pred;&lt;BR /&gt;model carvpr (event="1") = &amp;amp;liste_var_choix./d=bin;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and the results are as follow :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Proc Logistic&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1774i4990B2F0FE00B777/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Proc Logistic correct.png" title="Proc Logistic correct.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Proc GENMOD&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1775iFD91FF1A084A4D63/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Proc Genmod Correct.png" title="Proc Genmod Correct.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I removed the FREQ because it was initially used to replicate the carvpr=1 but it didn't work as planned. Instead I used the same method as in the proc logistic and as you said, it worked !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The scores are also legit, so it's perfect.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 20:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Difference-between-a-proc-logistic-and-a-genmod/m-p/248396#M13075</guid>
      <dc:creator>Mishojo</dc:creator>
      <dc:date>2016-02-05T20:39:37Z</dc:date>
    </item>
  </channel>
</rss>

