<?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: Is it possible for SAS to output the reference category for PROC LOGISTIC? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932102#M46469</link>
    <description>&lt;P&gt;Apologies; I should have clarified that I am referring to the reference category of the outcome variable, not the predictor variables. I have edited this into the OP.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 08:56:35 GMT</pubDate>
    <dc:creator>ODY7</dc:creator>
    <dc:date>2024-06-13T08:56:35Z</dc:date>
    <item>
      <title>Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932091#M46466</link>
      <description>&lt;P&gt;PROC LOGISTIC often overrides all ref= statements when used with a multinomial model. Can SAS output results or a dataset indicating which reference category was selected for the outcome (dependent) variable? The highest category is generally selected by default, but it would be nice to have output to confirm this, particularly if one wishes to change the reference category and confirm that it has changed. For example, can this be determined using the outputted OUTMODEL dataset? The model in question is a (partial) proportional odds cumulative logit model with three different categories (although this applies to any predictor with at least three categories). This is SAS version 9.4M7.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Code is:&lt;/DIV&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc logistic data=datain  order=internal outest=testout_est outmodel=testout_model;
 		class outcome(ref=first) catvar1(ref=first) catvar2(ref=last) / param=ref ref=first; * param=effect is default, which compares average effect across all values. param=ref compares to reference category;
		model outcome(event='1') = catvar1 catvar2 / link=clogit unequalslopes=(catvar1);
	run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV&gt;This returns the following notes:&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;NOTE: The REF= option for the response variable is ignored.&lt;BR /&gt;NOTE: PROC LOGISTIC is fitting the cumulative logit model. The probabilities modeled are summed over the responses having the lower Ordered Values in the Response Profile table.&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTMODEL output (testout_model). Some _MISC_ values have been changed slightly or replaced with xxx.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_TYPE_&lt;/TD&gt;&lt;TD&gt;_NAME_&lt;/TD&gt;&lt;TD&gt;_CATEGORY_&lt;/TD&gt;&lt;TD&gt;_NAMEIDX_&lt;/TD&gt;&lt;TD&gt;_CATIDX_&lt;/TD&gt;&lt;TD&gt;_MISC_&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;L&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;NYYNYNNN&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;outcome&lt;/TD&gt;&lt;TD&gt;outcome=0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt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gt;E&lt;/TD&gt;&lt;TD&gt;EFFECT&lt;/TD&gt;&lt;TD&gt;V&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;TD&gt;xxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;EFFECT&lt;/TD&gt;&lt;TD&gt;V&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;TD&gt;xxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;EFFECT&lt;/TD&gt;&lt;TD&gt;V&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;19&lt;/TD&gt;&lt;TD&gt;xxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;EFFECT&lt;/TD&gt;&lt;TD&gt;V&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;xxx&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;TD&gt;52&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;27&lt;/TD&gt;&lt;TD&gt;232&lt;/TD&gt;&lt;TD&gt;xxx&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 13 Jun 2024 09:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932091#M46466</guid>
      <dc:creator>ODY7</dc:creator>
      <dc:date>2024-06-13T09:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932100#M46468</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods output   ClassLevelInfo=  ClassLevelInfo;
proc logistic data=sashelp.heart;
class bp_status sex;
model status=bp_status sex weight height;
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-1718268443215.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97324i317E69A99DD7FA79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1718268443215.png" alt="Ksharp_0-1718268443215.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 08:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932100#M46468</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-06-13T08:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932102#M46469</link>
      <description>&lt;P&gt;Apologies; I should have clarified that I am referring to the reference category of the outcome variable, not the predictor variables. I have edited this into the OP.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 08:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932102#M46469</guid>
      <dc:creator>ODY7</dc:creator>
      <dc:date>2024-06-13T08:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932104#M46470</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1718269695924.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97325i637CA5076731BF60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1718269695924.png" alt="Ksharp_0-1718269695924.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 09:08:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932104#M46470</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-06-13T09:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932105#M46471</link>
      <description>&lt;P&gt;This was intended for a multinomial outcome (i.e. not binary). For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc logistic data=sashelp.heart;
class bp_status sex;
model Chol_Status = bp_status sex weight height;
output out=want p=pred;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Which shows values for each observation compared to a borderline and desirable response value. That makes me think that the other category,&amp;nbsp;High, is the reference category.&lt;/P&gt;&lt;P&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 09:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932105#M46471</guid>
      <dc:creator>ODY7</dc:creator>
      <dc:date>2024-06-13T09:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932109#M46472</link>
      <description>&lt;P&gt;In the output, the reference category will not have a parameter estimate. In this case, "Acura" does not have a parameter estimate. It will also show up in the Odds Ratio table where all the non-reference levels are compared to the reference level. It also shows up in Class Level Information output (I leave it as a homework assignment for you to look at the table and determine the reference level)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=sashelp.cars(obs=100);
    class make(ref='Acura');
    model origin=enginesize weight make;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1718278925646.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97326iE162C8B1E0E7D2FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_0-1718278925646.png" alt="PaigeMiller_0-1718278925646.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 11:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932109#M46472</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-13T11:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932139#M46476</link>
      <description>&lt;P&gt;The only way I know of specifying the reference level for the response variable is to shift to fitting a generalized logit to the multinomial distribution. If you go that way, you can specify any particular level of the response variable as the reference using the ref='&amp;nbsp; ' method. The source of the NOTE: regarding the reference category in the response variable is due to the link chosen. As I mentioned in the first sentence, you have to specify LINK=GLOGIT for it to apply the reference level. There are other PROCs that operate similarly (HPGENSELECT, GLIMMIX for example).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just thought of another way, but it requires formatting the levels of the response variable. Just set up your format so that the level you want as the reference is either LAST (default) or FIRST (needs a REF=FIRST in either the MODEL or CLASS statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 14:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932139#M46476</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-06-13T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932141#M46478</link>
      <description>&lt;P&gt;First, you should never specify the response variable (OUTCOME) in the CLASS statement. Any options that you want to apply to the response levels should be specified in parentheses after the response variable in the MODEL statement. These are called the response variable options. You are fitting a cumulative logit model for an ordered response, so the only response level sorting and ordering are relevant. Neither the EVENT= option, which only applies to a binary response, nor the REF= option are relevant and are ignored. Since your response is ordinal, you should be concerned with whether the response levels are in proper ascending or descending order. The order being used is shown in the Response Profile table. For instance, if the response has levels High, Medium, and Low, you don't want the Response Profile table showing the response levels in the order Medium, Low, High. If the displayed order is not properly ascending or descending, you can use the ORDER= response variable option or you can create a format for the response whose values will sort properly. If they are in proper descending order but you want to model probabilities of higher response levels, then also add the DESCENDING response variable option. See Response Level Ordering in the Details section of the LOGISTIC documentation and &lt;A href="http://support.sas.com/kb/22593" target="_self"&gt;this note&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 14:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932141#M46478</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-06-13T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932181#M46480</link>
      <description>&lt;P&gt;For GLIMMIX and HPGENSELECT, you must specify the output variable in the CLASS statement if you are fitting a generalized logit link to a multivariate distribution. For LOGISTIC, it is as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;says - don't put the output variable in the CLASS statement. I don't know why it isn't consistent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 15:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932181#M46480</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-06-13T15:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible for SAS to output the reference category for PROC LOGISTIC?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932344#M46483</link>
      <description>&lt;P&gt;&lt;BR /&gt;Since your Y variable Chol_Status is multinomial variable have three levels, then you fit TWO logistic models separatedly:&lt;BR /&gt;&lt;BR /&gt;1)&lt;BR /&gt;where Chol_Status in ('borderline ' 'High');&lt;BR /&gt;model Chol_Status (event='borderline ')=&lt;BR /&gt;2)&lt;BR /&gt;where Chol_Status in ('desirable ' 'High');&lt;BR /&gt;model Chol_Status (event='desirable ')=&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 00:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Is-it-possible-for-SAS-to-output-the-reference-category-for-PROC/m-p/932344#M46483</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-06-14T00:40:52Z</dc:date>
    </item>
  </channel>
</rss>

