<?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: change reference level for categorical variable in linear regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/339476#M17879</link>
    <description>&lt;P&gt;PROC GLMSELECT allows it. I don't know about the others, but thought they didn't.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 23:08:28 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-03-08T23:08:28Z</dc:date>
    <item>
      <title>change reference level for categorical variable in linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/339474#M17878</link>
      <description>&lt;P&gt;Dear,&lt;BR /&gt;I have to set a multiple linear regression with continuous and categorical variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS uses the highest value of a categorical variable as the reference level. How can I change the reference level of a categorical variable?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I use CLASS statement with the REF OPTION (REF=FIRST) in the PROC REG or PROC GLM?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 23:03:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/339474#M17878</guid>
      <dc:creator>d_margiotta</dc:creator>
      <dc:date>2017-03-08T23:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: change reference level for categorical variable in linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/339476#M17879</link>
      <description>&lt;P&gt;PROC GLMSELECT allows it. I don't know about the others, but thought they didn't.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 23:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/339476#M17879</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-08T23:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: change reference level for categorical variable in linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/339478#M17880</link>
      <description>Thanks</description>
      <pubDate>Wed, 08 Mar 2017 23:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/339478#M17880</guid>
      <dc:creator>d_margiotta</dc:creator>
      <dc:date>2017-03-08T23:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: change reference level for categorical variable in linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/417191#M21907</link>
      <description>&lt;P&gt;Can you use PROC GLMSELECT to perform a standard linear regression? I'm running into the same problem with the reference group for my categorical variables. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/417191#M21907</guid>
      <dc:creator>abarnett313</dc:creator>
      <dc:date>2017-11-29T19:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: change reference level for categorical variable in linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/417196#M21908</link>
      <description>&lt;P&gt;You can create the dummy variables in many different ways and use PROC REG.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-create-dummy-variables-Categorical-Variables/td-p/258702" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-create-dummy-variables-Categorical-Variables/td-p/258702&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But otherwise I think you can, this is from the documentation and I'm going to guess the first three sentences are what you need?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;The GLMSELECT procedure compares most closely to REG and GLM. The REG procedure supports a variety of model-selection methods but does not support a CLASS statement. The GLM procedure supports a CLASS statement but does not include effect selection methods. The GLMSELECT procedure fills this gap.&lt;/STRONG&gt; GLMSELECT focuses on the standard independently and identically distributed general linear model for univariate responses and offers great flexibility for and insight into the model selection algorithm. GLMSELECT provides results (displayed tables, output data sets, and macro variables) that make it easy to take the selected model and explore it in more detail in a subsequent procedure such as REG or GLM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/417196#M21908</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-29T19:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: change reference level for categorical variable in linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/417205#M21909</link>
      <description>&lt;P&gt;You can use the REF= option in the CLASS statement in PROC GLM. PROC REG does not have a CLASS statement. See &lt;A href="http://support.sas.com/kb/37108" target="_self"&gt;this note&lt;/A&gt; on the topic for many procedures.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 19:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/change-reference-level-for-categorical-variable-in-linear/m-p/417205#M21909</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-11-29T19:57:16Z</dc:date>
    </item>
  </channel>
</rss>

