<?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 glm with categorical variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-with-categorical-variables/m-p/408557#M21274</link>
    <description>&lt;P&gt;See if specifying this at the end of your MODEL statement does what you want: &lt;STRONG&gt;/ SOLUTION;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Oct 2017 11:17:36 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-10-30T11:17:36Z</dc:date>
    <item>
      <title>proc glm with categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-with-categorical-variables/m-p/408556#M21273</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run a Proc GLM with categorical variables (year and age-groups). I would like to see the interaction of each year and each age-group (plus female, etc.) explicitly WITHOUT having to create dummy variables for each year, as this would make my model very cumbersome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indicating year and age_gr in a CLASS statement works well with PROC logistic on the same model. I get individual coefficients for year=2010&amp;nbsp; to year=2013, but this does not work with Proc GLM and I get one coefficient for the year variable only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;********************************************************&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;logistic&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=data_predict &lt;SPAN class="s2"&gt;descending&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; year age_gr;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; treated=contract|year|age|female;&lt;/P&gt;&lt;P class="p4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;glm&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=data_predict;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;class&lt;/SPAN&gt; year age_gr;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s2"&gt;model&lt;/SPAN&gt; prob_score=contract|year|age_gr|female;&lt;/P&gt;&lt;P class="p4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-with-categorical-variables/m-p/408556#M21273</guid>
      <dc:creator>GKati</dc:creator>
      <dc:date>2017-10-30T11:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm with categorical variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-with-categorical-variables/m-p/408557#M21274</link>
      <description>&lt;P&gt;See if specifying this at the end of your MODEL statement does what you want: &lt;STRONG&gt;/ SOLUTION;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:17:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-with-categorical-variables/m-p/408557#M21274</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-30T11:17:36Z</dc:date>
    </item>
  </channel>
</rss>

