<?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: how to make reference variable in Proc logistic in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/564882#M158494</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/245291"&gt;@SSin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I am running Proc Logistic and it works perfectly fine. However, I would like to define reference level. For example, I have a categorical variable of "Race" with 4 levels ; Chinese, Malay, Indian and Others. I would like to make SAS reads "Chinese" as my reference but now SAS is reading "Others" as my reference. I am using this statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc logistic data=WORK.IMPORT3 descending; /* SAS treats the levels of Adenovirus_E in a descending order (high to low)*/ &lt;BR /&gt;   class HDB Sick_Season Race Smoker Service;&lt;BR /&gt;   model Adenovirus_E= HDB Sick_Season Race HDB*Race Smoker Service age_at_date_of_reprot_sick  / expb;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Please let me know how to solve this? Many thanks!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Use the ref= option on the class statement, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=one;&lt;BR /&gt;class x (ref='1');&lt;BR /&gt;model y=x;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 12:41:31 GMT</pubDate>
    <dc:creator>DWilson</dc:creator>
    <dc:date>2019-06-10T12:41:31Z</dc:date>
    <item>
      <title>how to make reference variable in Proc logistic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/564834#M158475</link>
      <description>&lt;P&gt;I am running Proc Logistic and it works perfectly fine. However, I would like to define reference level. For example, I have a categorical variable of "Race" with 4 levels ; Chinese, Malay, Indian and Others. I would like to make SAS reads "Chinese" as my reference but now SAS is reading "Others" as my reference. I am using this statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc logistic data=WORK.IMPORT3 descending; /* SAS treats the levels of Adenovirus_E in a descending order (high to low)*/ &lt;BR /&gt;   class HDB Sick_Season Race Smoker Service;&lt;BR /&gt;   model Adenovirus_E= HDB Sick_Season Race HDB*Race Smoker Service age_at_date_of_reprot_sick  / expb;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Please let me know how to solve this? Many thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 09:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/564834#M158475</guid>
      <dc:creator>SSin</dc:creator>
      <dc:date>2019-06-10T09:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to make reference variable in Proc logistic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/564881#M158493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/245291"&gt;@SSin&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the REF= option after the variable name in the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_syntax05.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;CLASS statement&lt;/A&gt;, e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class HDB Sick_Season Race(ref='Chinese') Smoker Service;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/564881#M158493</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-06-10T12:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to make reference variable in Proc logistic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/564882#M158494</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/245291"&gt;@SSin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I am running Proc Logistic and it works perfectly fine. However, I would like to define reference level. For example, I have a categorical variable of "Race" with 4 levels ; Chinese, Malay, Indian and Others. I would like to make SAS reads "Chinese" as my reference but now SAS is reading "Others" as my reference. I am using this statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc logistic data=WORK.IMPORT3 descending; /* SAS treats the levels of Adenovirus_E in a descending order (high to low)*/ &lt;BR /&gt;   class HDB Sick_Season Race Smoker Service;&lt;BR /&gt;   model Adenovirus_E= HDB Sick_Season Race HDB*Race Smoker Service age_at_date_of_reprot_sick  / expb;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Please let me know how to solve this? Many thanks!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Use the ref= option on the class statement, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=one;&lt;BR /&gt;class x (ref='1');&lt;BR /&gt;model y=x;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/564882#M158494</guid>
      <dc:creator>DWilson</dc:creator>
      <dc:date>2019-06-10T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to make reference variable in Proc logistic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/565123#M158604</link>
      <description>Many thanks!</description>
      <pubDate>Tue, 11 Jun 2019 07:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-make-reference-variable-in-Proc-logistic/m-p/565123#M158604</guid>
      <dc:creator>SSin</dc:creator>
      <dc:date>2019-06-11T07:04:36Z</dc:date>
    </item>
  </channel>
</rss>

