<?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: estimates in proc logistic when predictor is a continuous var in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951291#M47563</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;r-square value of model is just a square of pearson correlation coefficient between Y variable and Predicted Y variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In other words,&amp;nbsp; &amp;nbsp;r in&amp;nbsp;r-square is&amp;nbsp;&amp;nbsp;a pearson correlation coefficient between Y variable and Predicted Y variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=sashelp.class;
model weight=height age;
output out=want p=pred;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1732068394303.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102361iD1FD22F9B26CDE5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1732068394303.png" alt="Ksharp_0-1732068394303.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;&lt;SPAN&gt;You can use PROC CORR to do&amp;nbsp;correlation coefficient significant test .&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=want;
var weight pred;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_2-1732069306737.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102363iDAD34189324646C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_2-1732069306737.png" alt="Ksharp_2-1732069306737.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here 0.87915*0.87915= 0.7729&amp;nbsp; (the same as r-square of model)&lt;/P&gt;
&lt;P&gt;You can check the p-value (marked as yellow) to see if&amp;nbsp; r-square is significant.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 02:23:03 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-11-20T02:23:03Z</dc:date>
    <item>
      <title>estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/950983#M47548</link>
      <description>&lt;P&gt;Dear SAS community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the lsmeans/ilink option is not supported in proc logistic when the predictor var is continuous, I tried the following estimates:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My outcome var is ordinal (1,2,3,4,5,6,7,8,9) and my predictor DM continuous. I would like to know the predicted prob for hedonic=5 and 6 at DM=22.8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc logistic data=one desc;&lt;BR /&gt;model hedonic= DM/link=clogit;&lt;BR /&gt;estimate "Pr prob hedonic=5 at DM=22.8" intercept 1 DM 22.8/ilink category='5';&lt;BR /&gt;estimate "Pr prob hedonic=6 at DM=22.8" intercept 1 DM 22.8/ilink category='6';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would greatly appreciate if you could let me know if this looks ok to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/950983#M47548</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-16T02:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/950985#M47549</link>
      <description>&lt;P&gt;Since you want predicted probabilities for individual levels of your response from this ordinal model, the clearest way to get them is to create a one observation data set to be scored with DM at the desired level and then use the OUTPUT statement with the PREDPROBS=INDIVIDUAL option. This option produces the predicted probabilities of the individual response levels. To illustrate, use the DocVisit data set in the example titled "Partial Proportional Odds Model" in the PROC LOGISTIC documentation. To simplify the example, the following statements combine all the higher response levels into level 3, so that the new response variable, DV, has levels 0, 1, 2, or 3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dv; set docvisit; 
  dv=dvisits; if dvisits&amp;gt;2 then dv=3; 
  run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and then create a one observation data set with the predictor, INCOME, set to the desired level (let's use 0.25) and the response set to missing and add it to the original data so that this observation does not get used when fitting the model. The SCORE variable is created so that this observation can be singled out for saving by the WHERE clause in the PROC LOGISTIC OUTPUT statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data score; income=0.25; dv=.; score=1; run;
data dv2; set score dv; run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now, fit the ordinal model using INCOME as the predictor. The EFFECTPLOT gives you a visual image of how the individual response level probabilities change with INCOME. The OUTPUT statement produces the individual response level probabilities and the probabilities cumulated over the lower response levels (0, up to 1, up to 2, and up to 3). The ESTIMATE statement with the ILINK option can only produce the cumulative probabilities. The CATEGORY=JOINT option gives each of the cumulative probabilities in a single table.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=dv2; 
model dv=income; 
effectplot / individual;
output out=out(where=(score=1)) predprobs=(cumulative individual); 
estimate 'P(dv=1 @ .25)' intercept 1 income .25 / ilink category=joint;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;These statements print the one observation at INCOME=0.25 and its cumulative (beginning with CP_) and individual level (beginning with IP_) predicted probabilities.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=out;
id income; var ip: cp:; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Notice that the cumulative predicted probabilities are the same as those from the ESTIMATE statement. The differences between successive cumulative predicted probabilities are the individual predicted probabilities.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/950985#M47549</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-11-16T03:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951003#M47550</link>
      <description>&lt;P&gt;Great, I got the same results using this approach, thank you so much StatDave!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Question: when using proc logistic with a categorical outcome variable with more than two levels, do I have to include it in the class statement&amp;nbsp; and specify a baseline category using (ref=)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 22:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951003#M47550</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-16T22:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951004#M47551</link>
      <description>No. When modeling a categorical response (binary, ordinal, or nominal) in any procedure (LOGISTIC, GENMOD, HPGENSELECT, etc.), it is best to not include it in the CLASS statement. If you want to set a reference level (for a binary or nominal responses) or to change the direction of an ordinal response, use the options following the response in the MODEL. For example:  model y(ref='1') =  .... / link=glogit;</description>
      <pubDate>Sat, 16 Nov 2024 22:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951004#M47551</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-11-16T22:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951005#M47552</link>
      <description>&lt;P&gt;Ok, good to know. Thank you very much StatDave!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 22:30:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951005#M47552</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-16T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951237#M47559</link>
      <description>&lt;P&gt;Note that "etc." in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;'s response does not, so far as I can tell, include GLIMMIX. For some reason, a multinomial response variable must be included in the CLASS statement for things to not error out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 17:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951237#M47559</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-11-19T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951241#M47560</link>
      <description>&lt;P&gt;Thank you for letting me know Steve, that's good to know, I hope I can remember that when using Glimmix.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question regarding regression analysis. I know that the higher the r-square value the better, but is there a minimum r-square value in order to make meaningful predictions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you Steve!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 19:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951241#M47560</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-19T19:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951291#M47563</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;r-square value of model is just a square of pearson correlation coefficient between Y variable and Predicted Y variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In other words,&amp;nbsp; &amp;nbsp;r in&amp;nbsp;r-square is&amp;nbsp;&amp;nbsp;a pearson correlation coefficient between Y variable and Predicted Y variable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=sashelp.class;
model weight=height age;
output out=want p=pred;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1732068394303.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102361iD1FD22F9B26CDE5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1732068394303.png" alt="Ksharp_0-1732068394303.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;&lt;SPAN&gt;You can use PROC CORR to do&amp;nbsp;correlation coefficient significant test .&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=want;
var weight pred;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_2-1732069306737.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102363iDAD34189324646C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_2-1732069306737.png" alt="Ksharp_2-1732069306737.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here 0.87915*0.87915= 0.7729&amp;nbsp; (the same as r-square of model)&lt;/P&gt;
&lt;P&gt;You can check the p-value (marked as yellow) to see if&amp;nbsp; r-square is significant.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 02:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951291#M47563</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-20T02:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951300#M47567</link>
      <description>Your approach is mostly correct, but a couple of things to adjust:&lt;BR /&gt;&lt;BR /&gt;Intercept: You may need to reference specific threshold values for hedonic = 5 and 6 instead of using a generic intercept 1.&lt;BR /&gt;Category Option: The category option isn't supported in proc logistic. Use proc plm to compute predicted probabilities or adjust your estimates using the model thresholds.&lt;BR /&gt;This should help you get the correct predicted probabilities.</description>
      <pubDate>Wed, 20 Nov 2024 08:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951300#M47567</guid>
      <dc:creator>sajjad1122</dc:creator>
      <dc:date>2024-11-20T08:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951390#M47574</link>
      <description>The CATEGORY= option is indeed supported in PROC LOGISTIC. Perhaps you are using a much older release. If you add the E option in the ESTIMATE statement in my example below, the resulting table shows that each estimate it produces uses, in turn, one of the intercepts so that each estimate in the resulting set appropriately gives the predicted probability for one particular response level. Also, if you change LOGISTIC to GLIMMIX in the code, and run it with just the MODEL statement and add the DIST=MULT option, it runs fine without having the response in the CLASS statement.</description>
      <pubDate>Wed, 20 Nov 2024 20:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951390#M47574</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-11-20T20:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951414#M47575</link>
      <description>Thank you so much for your suggestion Ksharp. To use Pearson corr between two variables, neither of the variables can be the response or outcome var?</description>
      <pubDate>Thu, 21 Nov 2024 00:16:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951414#M47575</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-21T00:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951415#M47576</link>
      <description>Thanks for your clarification StatDave!</description>
      <pubDate>Thu, 21 Nov 2024 00:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951415#M47576</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-21T00:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951416#M47577</link>
      <description>What do you mean by that ?&lt;BR /&gt;these two variable: one is original response variable Y,another is Y hat(the predicted value of Y).</description>
      <pubDate>Thu, 21 Nov 2024 00:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951416#M47577</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-21T00:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951432#M47578</link>
      <description>Ok I will try that with y and pred y, but this applies only to continuous variables right?</description>
      <pubDate>Thu, 21 Nov 2024 04:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951432#M47578</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-21T04:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951440#M47579</link>
      <description>&lt;P&gt;Nope. Also could apply to LOGISTIC Model:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
 y=ifn(status='Dead',0,1);
run;

proc logistic data=have;
model y=height weight/rsquare;
output out=want p=pred;
run;
proc corr data=want;
var y pred;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1732169828016.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102395iE76FF612256E3733/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1732169828016.png" alt="Ksharp_0-1732169828016.png" /&gt;&lt;/span&gt;&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="Ksharp_1-1732169858169.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102396i13478C07D0E72A77/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1732169858169.png" alt="Ksharp_1-1732169858169.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here 0.14804*0.14804=0.0219 (same as proc logistic)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 06:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951440#M47579</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-21T06:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951621#M47587</link>
      <description>&lt;P&gt;With regard to GLIMMIX, I was incomplete in my assertion about including a categorical response in the CLASS statement for multinomial distributions. That only seems to be the case for a generalized logit (LINK=GLOGIT), but not for the default link for DIST=MULT, where the default is a cumulative logit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;(Apologies to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 14:43:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951621#M47587</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-11-22T14:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951684#M47599</link>
      <description>&lt;P&gt;That's great, thank you very much Ksharp!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried this code (omitting the first part) when my outcome var is binary and I got pretty similar values for r-square. However, when I tried it for an ordinal outcome var I got pretty different r-square results (0.07172*0.07172=0.0051 vs 0.1022). Am I doing something wrong or does this only work for binary outcome variables?&lt;/P&gt;
&lt;P&gt;This is the code I'm using :&lt;/P&gt;
&lt;P&gt;proc logistic data=one desc;&lt;BR /&gt;model hedonic=DM/link=clogit rsquare;&lt;BR /&gt;output out=want3 p=pred;&lt;BR /&gt;run;&lt;BR /&gt;proc corr data=want3;&lt;BR /&gt;var hedonic pred;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are the results I get:&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Logistic: Response Profile" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="3" scope="colgroup"&gt;Response Profile&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;Ordered&lt;BR /&gt;Value&lt;/TH&gt;
&lt;TH class="l b header" scope="col"&gt;hedonic&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Total&lt;BR /&gt;Frequency&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;1&lt;/TH&gt;
&lt;TD class="l data"&gt;9&lt;/TD&gt;
&lt;TD class="r data"&gt;17&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;2&lt;/TH&gt;
&lt;TD class="l data"&gt;8&lt;/TD&gt;
&lt;TD class="r data"&gt;93&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;3&lt;/TH&gt;
&lt;TD class="l data"&gt;7&lt;/TD&gt;
&lt;TD class="r data"&gt;99&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;4&lt;/TH&gt;
&lt;TD class="l data"&gt;6&lt;/TD&gt;
&lt;TD class="r data"&gt;103&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;5&lt;/TH&gt;
&lt;TD class="l data"&gt;5&lt;/TD&gt;
&lt;TD class="r data"&gt;86&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;6&lt;/TH&gt;
&lt;TD class="l data"&gt;4&lt;/TD&gt;
&lt;TD class="r data"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;7&lt;/TH&gt;
&lt;TD class="l data"&gt;3&lt;/TD&gt;
&lt;TD class="r data"&gt;50&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;8&lt;/TH&gt;
&lt;TD class="l data"&gt;2&lt;/TD&gt;
&lt;TD class="r data"&gt;31&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r rowheader" scope="row"&gt;9&lt;/TH&gt;
&lt;TD class="l data"&gt;1&lt;/TD&gt;
&lt;TD class="r data"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="proctitle"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="c proctitle"&gt;Probabilities modeled are cumulated over the lower Ordered Values.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Logistic: R-Square and Max-rescaled R-Square" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;R-Square&lt;/TH&gt;
&lt;TD class="r data"&gt;0.1022&lt;/TD&gt;
&lt;TH class="l rowheader" scope="row"&gt;Max-rescaled R-Square&lt;/TH&gt;
&lt;TD class="r data"&gt;0.1042&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Logistic: Global Tests" width="278px" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="4" scope="colgroup" width="277.2px"&gt;Testing Global Null Hypothesis: BETA=0&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col" width="99.25px"&gt;Test&lt;/TH&gt;
&lt;TH class="r b header" scope="col" width="71.9875px"&gt;Chi-Square&lt;/TH&gt;
&lt;TH class="r b header" scope="col" width="40px"&gt;DF&lt;/TH&gt;
&lt;TH class="r b header" scope="col" width="65.9625px"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;ChiSq&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row" width="99.25px"&gt;Likelihood Ratio&lt;/TH&gt;
&lt;TD width="71.9875px" class="r data"&gt;62.8777&lt;/TD&gt;
&lt;TD width="40px" class="r data"&gt;1&lt;/TD&gt;
&lt;TD width="65.9625px" class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row" width="99.25px"&gt;Score&lt;/TH&gt;
&lt;TD width="71.9875px" class="r data"&gt;60.9165&lt;/TD&gt;
&lt;TD width="40px" class="r data"&gt;1&lt;/TD&gt;
&lt;TD width="65.9625px" class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row" width="99.25px"&gt;Wald&lt;/TH&gt;
&lt;TD width="71.9875px" class="r data"&gt;60.5840&lt;/TD&gt;
&lt;TD width="40px" class="r data"&gt;1&lt;/TD&gt;
&lt;TD width="65.9625px" class="r data"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="branch"&gt;&lt;BR /&gt;
&lt;DIV class="c proctitle"&gt;The CORR Procedure&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Corr: Pearson Correlations" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="3" scope="colgroup"&gt;Pearson Correlation Coefficients &lt;BR /&gt;Prob &amp;gt; |r| under H0: Rho=0 &lt;BR /&gt;Number of Observations&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="c headerempty" scope="col"&gt;&amp;nbsp;&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;hedonic&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;pred&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l stacked_cell rowheader" scope="row"&gt;
&lt;TABLE border="0" width="100%" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader top_stacked_value" scope="row"&gt;hedonic&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data bottom_stacked_value"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TH&gt;
&lt;TD class="r stacked_cell data"&gt;
&lt;TABLE border="0" width="100%" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data top_stacked_value"&gt;1.00000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="r data middle_stacked_value"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="r data bottom_stacked_value"&gt;4680&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;TD class="r stacked_cell data"&gt;
&lt;TABLE border="0" width="100%" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data top_stacked_value"&gt;0.07172&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="r data middle_stacked_value"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="r data bottom_stacked_value"&gt;4664&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l stacked_cell rowheader" scope="row"&gt;
&lt;TABLE border="0" width="100%" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader top_stacked_value" scope="row"&gt;pred&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data bottom_stacked_value"&gt;Estimated Probability&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TH&gt;
&lt;TD class="r stacked_cell data"&gt;
&lt;TABLE border="0" width="100%" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data top_stacked_value"&gt;0.07172&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="r data middle_stacked_value"&gt;&amp;lt;.0001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="r data bottom_stacked_value"&gt;4664&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;TD class="r stacked_cell data"&gt;
&lt;TABLE border="0" width="100%" cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data top_stacked_value"&gt;1.00000&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="r data middle_stacked_value"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="r data bottom_stacked_value"&gt;4664&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;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Nov 2024 22:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951684#M47599</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-22T22:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951685#M47600</link>
      <description>&lt;P&gt;Thanks for your clarification Steve!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 22:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951685#M47600</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2024-11-22T22:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951687#M47601</link>
      <description>&lt;P&gt;No worries, but actually GLIMMIX also runs fine with GLOGIT:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=dv2; 
model dv=income/dist=mult link=glogit s; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Nov 2024 22:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951687#M47601</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-11-22T22:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: estimates in proc logistic when predictor is a continuous var</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951697#M47602</link>
      <description>If your Y variable is ordinal with multiple values like : 1,2,3,4&lt;BR /&gt;the PROC LOGISTIC would lead you to THREE models:&lt;BR /&gt;1 v.s 2,3,4&lt;BR /&gt;1,2 v.s 3,4&lt;BR /&gt;1,2,3 v.s 4&lt;BR /&gt;&lt;BR /&gt;Therefore, my idea is NOT suited for this scenario I think.</description>
      <pubDate>Sat, 23 Nov 2024 06:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/estimates-in-proc-logistic-when-predictor-is-a-continuous-var/m-p/951697#M47602</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-11-23T06:14:09Z</dc:date>
    </item>
  </channel>
</rss>

