<?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: Proc Logistic Class Statement Not Using Reference Variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/493679#M25593</link>
    <description>&lt;P&gt;If the variable is character with numerals as values the sort order for "first" may be different than you expect.&lt;/P&gt;
&lt;P&gt;Can you show us the values you 1) expect to be reference and 2) is actually be used as reference?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 23:07:35 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-09-07T23:07:35Z</dc:date>
    <item>
      <title>Proc Logistic Class Statement Not Using Reference Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/493641#M25591</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm running a logistic regression for a categorical outcome variable (cv) and a main exposure (sun) which is also continuous. I have several covariates which have various levels, and I'm trying to use the first level as the reference.&lt;/P&gt;&lt;P&gt;However, SAS keeps on using the second level as reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;logistic&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DATA=finald&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;descending;&lt;/P&gt;&lt;P&gt;CLASS site(REF=FIRST);&lt;/P&gt;&lt;P&gt;MODEL&lt;SPAN&gt;&amp;nbsp;cv&lt;/SPAN&gt;=&amp;nbsp;sun&amp;nbsp;age site/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;clPARM=both;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 20:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/493641#M25591</guid>
      <dc:creator>MerAgSo</dc:creator>
      <dc:date>2018-09-07T20:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic Class Statement Not Using Reference Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/493647#M25592</link>
      <description>&lt;P&gt;Specify PARAM=REF as well, and if it persists please post a proc freq result of the variable SITE or the PROC LOGISTIC results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/197667"&gt;@MerAgSo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I'm running a logistic regression for a categorical outcome variable (cv) and a main exposure (sun) which is also continuous. I have several covariates which have various levels, and I'm trying to use the first level as the reference.&lt;/P&gt;
&lt;P&gt;However, SAS keeps on using the second level as reference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the code:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;logistic&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;DATA=finald&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;descending;&lt;/P&gt;
&lt;P&gt;CLASS site(REF=FIRST);&lt;/P&gt;
&lt;P&gt;MODEL&lt;SPAN&gt;&amp;nbsp;cv&lt;/SPAN&gt;=&amp;nbsp;sun&amp;nbsp;age site/&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;clPARM=both;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 21:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/493647#M25592</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-07T21:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic Class Statement Not Using Reference Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/493679#M25593</link>
      <description>&lt;P&gt;If the variable is character with numerals as values the sort order for "first" may be different than you expect.&lt;/P&gt;
&lt;P&gt;Can you show us the values you 1) expect to be reference and 2) is actually be used as reference?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 23:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/493679#M25593</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-07T23:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Logistic Class Statement Not Using Reference Variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/495519#M25686</link>
      <description>&lt;P&gt;It's best to explicitly specify the reference level in the REF= option. Specify the value you want as the reference in quotes - for example, REF="MyRefLevel". Quotes should be used regardless of whether the variable or it's values are numeric or character. Also, if the variable has an associated format, you must specify it's formatted value rather than it's internal, unformatted value.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 20:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Logistic-Class-Statement-Not-Using-Reference-Variable/m-p/495519#M25686</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-09-13T20:59:12Z</dc:date>
    </item>
  </channel>
</rss>

