<?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: Fitting a model using PROC REG with dummy variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535456#M147039</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226541"&gt;@JUMMY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, I am only familiar with PROC REG.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You really need to look at PROC GLM in this situation, you do not have to create dummy variables in this case, because PROC GLM creates them for you when you include a variable in the CLASS statement. Anything else in this situation makes your life harder.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 23:44:55 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-02-13T23:44:55Z</dc:date>
    <item>
      <title>Fitting a model using PROC REG with dummy variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535432#M147029</link>
      <description>&lt;P&gt;How do I fit a model that predicts xx from xxx allowing the intercepts to be different for university but forcing the equal slopes using PROC REG? How do I express the three universities to include dummy variables? I need help on how to create the dummy variable manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input university $ xxx xx@@;
datalines;

UGA 2.1 440 UGA 2.2 330 UGA 2.2 460 UGA 2.3 460 UGA 2.4 480 
UGA 2.6 510 UGA 3.3 560 UGA 3.4 670 UGA 3.5 630 UGA 3.6 680 
UNC 2.4 470 UNC 2.7 650 UNC 2.8 550 UNC 2.9 600 UNC 3.1 660 
UNC 3.2 670 UNC 3.4 690 UNC 3.5 690 UNC 3.5 730 UNC 3.5 760 
USC 2.2 430 USC 2.3 440 USC 2.4 480 USC 2.5 480 USC 2.9 570 
USC 3.0 510 USC 3.2 580 USC 3.5 630 USC 3.6 770 USC 3.9 760 
;

proc print;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 23:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535432#M147029</guid>
      <dc:creator>JUMMY</dc:creator>
      <dc:date>2019-02-13T23:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a model using PROC REG with dummy variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535433#M147030</link>
      <description>If you can use PROC GLM, put the University variable in the CLASS statement.</description>
      <pubDate>Wed, 13 Feb 2019 22:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535433#M147030</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T22:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a model using PROC REG with dummy variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535437#M147032</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, I am only familiar with PROC REG.</description>
      <pubDate>Wed, 13 Feb 2019 22:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535437#M147032</guid>
      <dc:creator>JUMMY</dc:creator>
      <dc:date>2019-02-13T22:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a model using PROC REG with dummy variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535441#M147035</link>
      <description>&lt;P&gt;The syntax is vary much similar to PROC REG. Refer to the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_syntax.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;PROC GLM Documentation&lt;/A&gt; for examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the blog post&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2016/02/22/create-dummy-variables-in-sas.html?utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%253A+TheDoLoop+%2528The+DO+Loop%2529" target="_self"&gt;Create dummy variables in SAS&lt;/A&gt;&amp;nbsp;may be relevant reading. Here, the two procedures are compared and the code is much simpler with GLM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 22:30:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535441#M147035</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-02-13T22:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a model using PROC REG with dummy variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535442#M147036</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226541"&gt;@JUMMY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, I am only familiar with PROC REG.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you need to create your dummy variables manually.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 22:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535442#M147036</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T22:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a model using PROC REG with dummy variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535456#M147039</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226541"&gt;@JUMMY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, I am only familiar with PROC REG.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You really need to look at PROC GLM in this situation, you do not have to create dummy variables in this case, because PROC GLM creates them for you when you include a variable in the CLASS statement. Anything else in this situation makes your life harder.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 23:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535456#M147039</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-13T23:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a model using PROC REG with dummy variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535459#M147040</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125765"&gt;@can&lt;/a&gt; you guide me on how to create them manually?</description>
      <pubDate>Wed, 13 Feb 2019 23:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535459#M147040</guid>
      <dc:creator>JUMMY</dc:creator>
      <dc:date>2019-02-13T23:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a model using PROC REG with dummy variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535460#M147041</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226541"&gt;@JUMMY&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125765"&gt;@can&lt;/a&gt; you guide me on how to create them manually?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A link was already provided (plus advice that you shouldn't bother)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 23:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fitting-a-model-using-PROC-REG-with-dummy-variables/m-p/535460#M147041</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-13T23:50:18Z</dc:date>
    </item>
  </channel>
</rss>

