<?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: Interaction for Two-Way ANOVA in Proc GLM not showing up in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271881#M14298</link>
    <description>&lt;P&gt;You have too few observations for the number of quantities that you are trying to estimate. Try defining only two levels of income and two levels of age. For example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc rank data=works out=rworks groups=2;
var income age;
run;

proc glm data=rworks;
class income age;
model rates = income age income*age;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 May 2016 02:54:15 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-05-20T02:54:15Z</dc:date>
    <item>
      <title>Interaction for Two-Way ANOVA in Proc GLM not showing up</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271816#M14295</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to conduct a two-way ANOVA with 8 observations, independent variables Income (5 levels) and Age (4 levels), and dependent variable Rates.&amp;nbsp; The independent variables started out as numbers, so to make them categorical I used statements such as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if income&amp;lt;35000 and income&amp;gt;40000 then inlevel='First';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then used the following procedure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data=works;&lt;/P&gt;&lt;P&gt;class income age;&lt;/P&gt;&lt;P&gt;model rates = income age income*age;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output was working fine until it hit the interaction effects.&amp;nbsp; In the SS output, the interaction effects are just showing missing values.&amp;nbsp; Does this mean I have too few observations and the interaction effects are too small?&amp;nbsp; Or should I not be using categorical variables?&amp;nbsp; This is all using SAS University, by the way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:12:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271816#M14295</guid>
      <dc:creator>gdona</dc:creator>
      <dc:date>2016-05-19T19:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction for Two-Way ANOVA in Proc GLM not showing up</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271857#M14297</link>
      <description>&lt;P&gt;Is there a typo in your binning statement?&lt;/P&gt;
&lt;P&gt;You said&lt;/P&gt;
&lt;P&gt;if income&amp;lt;35000 and income&amp;gt;40000 then &lt;STRONG&gt;inlevel&lt;/STRONG&gt;='First';&lt;/P&gt;
&lt;P&gt;but you are&amp;nbsp;using INCOME as a class variable in PROC GLM.&amp;nbsp; Did you mean to use INLEVEL?&lt;/P&gt;
&lt;P&gt;When you put INCOME on the CLASS statement, it is trying to fit every unique value of INCOME as a distinct level!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, coding the levels as 1, 2, 3,...&amp;nbsp;&amp;nbsp;&amp;nbsp; will be easier to handle than 'first', 'second', 'third'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 22:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271857#M14297</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-19T22:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction for Two-Way ANOVA in Proc GLM not showing up</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271881#M14298</link>
      <description>&lt;P&gt;You have too few observations for the number of quantities that you are trying to estimate. Try defining only two levels of income and two levels of age. For example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc rank data=works out=rworks groups=2;
var income age;
run;

proc glm data=rworks;
class income age;
model rates = income age income*age;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 May 2016 02:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271881#M14298</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-20T02:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Interaction for Two-Way ANOVA in Proc GLM not showing up</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271964#M14300</link>
      <description>&lt;P&gt;Also, the way you are discretizing your INCOME variable seems strange.&amp;nbsp; You are assigning the same category to the high and low values. Was that intentional?&amp;nbsp; Typically people use cutpoints to discretize:&lt;/P&gt;
&lt;P&gt;if income&amp;lt;35000 then &lt;STRONG&gt;inlevel&lt;/STRONG&gt;=1;&lt;/P&gt;
&lt;P&gt;else if income&amp;gt;=35000 and income&amp;lt;50000 then &lt;STRONG&gt;inlevel&lt;/STRONG&gt;=2;&lt;/P&gt;
&lt;P&gt;else if income&amp;gt;=50000 and income&amp;lt;80000 then &lt;STRONG&gt;inlevel&lt;/STRONG&gt;=3;&lt;/P&gt;
&lt;P&gt;etc;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 12:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Interaction-for-Two-Way-ANOVA-in-Proc-GLM-not-showing-up/m-p/271964#M14300</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-20T12:46:42Z</dc:date>
    </item>
  </channel>
</rss>

