<?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 reg and  reference groups in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176177#M9150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would use the TEST or ESTIMATE statements to compare level 2 to any other level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can specify the level you want to have coefficient of zero in the CLASS statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2015 14:36:19 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2015-01-09T14:36:19Z</dc:date>
    <item>
      <title>Proc reg and  reference groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176174#M9147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dataset&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Y&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff;"&gt;X1 (Categorical)&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;X2 (categorical)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;85&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;156&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;78&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;456&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I think by default, proc reg selects the lowest values as the reference variable right? In this case the reference value of X1/X2 will be 1.&amp;nbsp; If I were to run:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;Proc reg data=have;&lt;/P&gt;
&lt;P&gt;model y=x1 x2;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;2) If I wanted the reference value to be 2 for the X1 variable, how do I do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 14:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176174#M9147</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2015-01-09T14:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg and  reference groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176175#M9148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use character or categorical variables in the model statement of PROC REG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do this in PROC GLM, the last value alphabetically will have it's coefficient set to zero. Which in general is pretty irrelevant since you can use the TEST or ESTIMATE statement to compare level 2 to any (combination of) other levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your actual data set contains more than the 4 observations shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 14:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176175#M9148</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-01-09T14:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg and  reference groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176176#M9149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I'll look into Proc GLM. Yes there is more than 4 observations in my dataset shown &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use the class statement to set the reference value for Proc GLM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 14:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176176#M9149</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2015-01-09T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg and  reference groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176177#M9150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would use the TEST or ESTIMATE statements to compare level 2 to any other level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can specify the level you want to have coefficient of zero in the CLASS statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 14:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176177#M9150</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-01-09T14:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg and  reference groups</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176178#M9151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can set the reference level for CLASS variables in PROC GLM (beginning in SAS 9.3 TS1M2).&amp;nbsp; See &lt;A href="http://support.sas.com/kb/37108"&gt;this note&lt;/A&gt; about setting reference levels.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 20:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-and-reference-groups/m-p/176178#M9151</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2015-01-12T20:09:47Z</dc:date>
    </item>
  </channel>
</rss>

