<?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: Need dummy variables for Linear Regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436923#M23057</link>
    <description>&lt;P&gt;Same answer as before. I'll move this to the Stats forum in case others want to chime in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 23:23:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-13T23:23:21Z</dc:date>
    <item>
      <title>Need dummy variables for Linear Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436921#M23056</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm trying to run the proc genmod command, but when I look at level 3, it has 0s across the board but levels 1 and 2 have values. How do I get my level 3 data to show up? I dont know how to code for a dummy variable to get the 3rd level.&amp;nbsp;Any help is&amp;nbsp;&lt;/SPAN&gt;appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data UGAStudent_DATA;
Set date_difference; 

if cd4 &amp;lt;= 200 then cd4_levels='1';
if cd4 &amp;gt;=201 &amp;lt;=500 then cd4_levels='2';
if cd4 &amp;gt; 500 then cd4_levels='3'; 
run;

proc genmod data= ugastudent_data;
class cd4_levels /param=glm ;
model  Factor1 =  cd4_levels n_Duration_on_ART_months ;  
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2018 23:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436921#M23056</guid>
      <dc:creator>UGAstudent</dc:creator>
      <dc:date>2018-02-13T23:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need dummy variables for Linear Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436923#M23057</link>
      <description>&lt;P&gt;Same answer as before. I'll move this to the Stats forum in case others want to chime in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 23:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436923#M23057</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-13T23:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need dummy variables for Linear Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436925#M23058</link>
      <description>&lt;P&gt;Same answers here, for R if that helps at all with the explanation.&lt;/P&gt;
&lt;P&gt;This is one of those cases where you need to understand the underlying statistical concepts, specifically: Degrees of Freedom, dummy coding and an over parameterized models.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those are some key words you can use to search to explain these results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Advanced-Analytics/In-the-Logistic-Regression-Report-Factor-Missing/td-p/10094" target="_blank"&gt;https://community.alteryx.com/t5/Advanced-Analytics/In-the-Logistic-Regression-Report-Factor-Missing/td-p/10094&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 23:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436925#M23058</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-13T23:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need dummy variables for Linear Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436926#M23059</link>
      <description>&lt;P&gt;As others have sort of mentioned, proc genmod automatically creates dummy variables. And, with any combination of n dummy variables, all of the variance that can be explained is accounted for by n-1 of the dummy variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 23:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436926#M23059</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-02-13T23:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need dummy variables for Linear Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436927#M23060</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp;this is the previous question by the OP&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434932#M68927" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Data-Missing-on-output/m-p/434932#M68927&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 23:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Need-dummy-variables-for-Linear-Regression/m-p/436927#M23060</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-13T23:34:25Z</dc:date>
    </item>
  </channel>
</rss>

