<?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: McFadden’s R2 in  logistic REGRESSION in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/443755#M23294</link>
    <description>&lt;P&gt;I think you do the right thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=sashelp.class;&lt;BR /&gt;model sex=age weight height/rsquare;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R-Square0.3724Max-rescaled R-Square0.4970&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 13:51:31 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-03-08T13:51:31Z</dc:date>
    <item>
      <title>McFadden’s R2 in  logistic REGRESSION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/443372#M23293</link>
      <description>&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;I would like to&amp;nbsp; use the&amp;nbsp;McFadden’s&amp;nbsp;&lt;EM&gt;R&lt;/EM&gt;2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;for my model fit in logistic regressions.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I am running&amp;nbsp;sequential adjusted regression models.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Model 1 = crude model with fatty acid patterns only.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;model&amp;nbsp;2 = adjusted for age and gender&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Model 3&amp;nbsp;=&amp;nbsp; adjusted for&amp;nbsp;lifestyle confounders,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class="language-sas"&gt;*model 1;
proc logistic data=Alisama;*plasma FA;
model Weightchange_Indicator (event='1')= SCD_D9D_Plasma_2005 n6_PLASMA_2005 n3_PLASMA_2005 EFA_PLASMA_2005 / rsq  ;/*put the model in this form -&amp;gt; response = predictors*/
run;quit;



*model 2;
proc logistic data=Alisama;*plasma FA;
class Gender_Code_2005;*put categorical variables here*/;
model Weightchange_Indicator(event='1')= SCD_D9D_Plasma_2005 n6_PLASMA_2005 n3_PLASMA_2005 EFA_PLASMA_2005 Age2005 Gender_Code_2005   / rsq;/*put the model in this form -&amp;gt; response = predictors*/
run;quit;


*model 3;
proc logistic data=Alisama;*plasma FA;
class Gender_Code_2005 Urbanisation_2005 Tobbaco_2005 Education_2005;/*put categorical variables here*/
model  Weightchange_Indicator(event='1')= SCD_D9D_Plasma_2005 n6_PLASMA_2005 n3_PLASMA_2005 EFA_PLASMA_2005 Age2005 Gender_Code_2005  
               Gender_Code_2005 Urbanisation_2005  FFQALCOHOL_2005 Tobbaco_2005 Education_2005 
               FFQKJOUL_2005 Weighted_PA_Index_2005 / rsq;/*put the model in this form -&amp;gt; response = predictors*/
run;quit;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the model fit I&amp;nbsp;generated only includes these three&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class="language-sas"&gt;Model Fit Statistics 
Criterion Intercept Only Intercept and
Covariates 
AIC 565.422 558.473 
SC 569.441 578.566 
-2 Log L 563.422 548.473 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="4"&gt;I know I can use the loglikelihood, But I would prefer to use the&amp;nbsp;McFadden’s&amp;nbsp;&lt;EM&gt;R&lt;/EM&gt;2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;So how do I generate the&amp;nbsp;&lt;SPAN&gt;McFadden’s&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;R&lt;/EM&gt;2?????&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Please help.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Very kind regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Achieng&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/443372#M23293</guid>
      <dc:creator>Achieng</dc:creator>
      <dc:date>2018-03-07T15:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: McFadden’s R2 in  logistic REGRESSION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/443755#M23294</link>
      <description>&lt;P&gt;I think you do the right thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=sashelp.class;&lt;BR /&gt;model sex=age weight height/rsquare;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R-Square0.3724Max-rescaled R-Square0.4970&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 13:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/443755#M23294</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-03-08T13:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: McFadden’s R2 in  logistic REGRESSION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/444086#M23308</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Several different R-square measures, including McFadden's, are computed by PROC QLIM in SAS/ETS software.&amp;nbsp; LOGISTIC only reports the R-square based on the method of Cox and Snell.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;If you fit a model like this in PROC LOGISTIC:&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;proc logistic;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;model y=x1 x2 x3 / rsquare;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;run;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can fit the same model in PROC QLIM like this:&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;proc qlim;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;model y=x1 x2 x3 / discrete(d=logistic);&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;run;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and it will print all the R-square measures by default.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 13:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/444086#M23308</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2018-03-09T13:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: McFadden’s R2 in  logistic REGRESSION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/444242#M23314</link>
      <description>&lt;P&gt;You can also get McFadden's R-square in PROC HPLOGISTIC by using the PARTITION statement. Note that you do not have to actually do any partitioning of your data. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc hplogistic data=remiss;
model remiss(event='1') = smear blast;
partition fraction(test=0 validate=0);
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 19:58:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/444242#M23314</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-03-09T19:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: McFadden’s R2 in logistic REGRESSION</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/444662#M23335</link>
      <description>Dear Ksharp, I was unable to get the Mcfaddens R2 with this method, but&lt;BR /&gt;instead, I got other models fit models. Thank you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2018 07:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/McFadden-s-R2-in-logistic-REGRESSION/m-p/444662#M23335</guid>
      <dc:creator>Achieng</dc:creator>
      <dc:date>2018-03-12T07:53:34Z</dc:date>
    </item>
  </channel>
</rss>

