<?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 Degree of Freedom for a categorical variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Degree-of-Freedom-for-a-categorical-variable/m-p/506345#M1297</link>
    <description>&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;I intend to make a 3-way interaction using the "Proc Genmod". For this purpose, I made the following variables:&lt;/P&gt;&lt;P&gt;EPU: a categorical variable which takes the value of 1,2 or 3 and I made it using a continuous&amp;nbsp;variable.&lt;/P&gt;&lt;P&gt;M2CAT:&amp;nbsp;&lt;SPAN&gt;a categorical variable which takes the value of 1,2 or 3 and I made it using a continuous&amp;nbsp;variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MM: a continuous variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The model is as follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc genmoddata=rr;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;class fyear sic2 ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;model capas= epu|mm|m2cat&amp;nbsp;C1 C2 C3 C4 sic2;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;repeated subject=fyear ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;store capascont;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run the model, it shows the degree of freedom (DF)=1 for EPU and M2CAT. It has caused me a problem since it doesn't show me the interaction of each category with my continuous&amp;nbsp;variable and it seems that SAS treats these categorical variables as a continuous variable. I tried to change the format using the PROC FORMAT but the results stay the same. The problem remains even when I use PROC GLM instead of proc Genmod:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;proc glm=rr;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;class&amp;nbsp;&lt;/SPAN&gt;fyear&lt;SPAN&gt;&amp;nbsp;sic2 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;model capas= epu|mm|m2cat&amp;nbsp;C1 C2 C3 C4 sic2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would be grateful if you could help me with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 02:18:09 GMT</pubDate>
    <dc:creator>hyous0001</dc:creator>
    <dc:date>2018-10-22T02:18:09Z</dc:date>
    <item>
      <title>Degree of Freedom for a categorical variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Degree-of-Freedom-for-a-categorical-variable/m-p/506345#M1297</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;I intend to make a 3-way interaction using the "Proc Genmod". For this purpose, I made the following variables:&lt;/P&gt;&lt;P&gt;EPU: a categorical variable which takes the value of 1,2 or 3 and I made it using a continuous&amp;nbsp;variable.&lt;/P&gt;&lt;P&gt;M2CAT:&amp;nbsp;&lt;SPAN&gt;a categorical variable which takes the value of 1,2 or 3 and I made it using a continuous&amp;nbsp;variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MM: a continuous variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The model is as follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;proc genmoddata=rr;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;class fyear sic2 ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;model capas= epu|mm|m2cat&amp;nbsp;C1 C2 C3 C4 sic2;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;repeated subject=fyear ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;store capascont;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run the model, it shows the degree of freedom (DF)=1 for EPU and M2CAT. It has caused me a problem since it doesn't show me the interaction of each category with my continuous&amp;nbsp;variable and it seems that SAS treats these categorical variables as a continuous variable. I tried to change the format using the PROC FORMAT but the results stay the same. The problem remains even when I use PROC GLM instead of proc Genmod:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;proc glm=rr;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;class&amp;nbsp;&lt;/SPAN&gt;fyear&lt;SPAN&gt;&amp;nbsp;sic2 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;model capas= epu|mm|m2cat&amp;nbsp;C1 C2 C3 C4 sic2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would be grateful if you could help me with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 02:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Degree-of-Freedom-for-a-categorical-variable/m-p/506345#M1297</guid>
      <dc:creator>hyous0001</dc:creator>
      <dc:date>2018-10-22T02:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Degree of Freedom for a categorical variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Degree-of-Freedom-for-a-categorical-variable/m-p/506412#M1314</link>
      <description>&lt;P&gt;If EPU and M2CAT are categorical, you need to include them in the CLASS statement.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 12:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Degree-of-Freedom-for-a-categorical-variable/m-p/506412#M1314</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-10-22T12:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Degree of Freedom for a categorical variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Degree-of-Freedom-for-a-categorical-variable/m-p/506490#M1334</link>
      <description>&lt;P&gt;You're right, it worked! Thank you dear Paige.&lt;/P&gt;&lt;P&gt;I just got confused since it is exactly what we need to do to add a fixed effect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 16:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Degree-of-Freedom-for-a-categorical-variable/m-p/506490#M1334</guid>
      <dc:creator>hyous0001</dc:creator>
      <dc:date>2018-10-22T16:03:37Z</dc:date>
    </item>
  </channel>
</rss>

