<?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 Specify an error term in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Specify-an-error-term/m-p/213654#M11537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am using proc GLM to analyze some data.&amp;nbsp; I want to specify the error term that is used to test certain factors.&amp;nbsp; In other words I don't want all the factors tested over the mean square error (MSE).&amp;nbsp; For example, imagine I have two factors A and B and their interaction A*B.&amp;nbsp; I would like to test A over A*B and B over A*B and then have A*B tested over the MSE.&amp;nbsp; I don't know how to specify the error term.&amp;nbsp; Can someone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glm data=work.myexcel;&lt;/P&gt;&lt;P&gt;class A B;&lt;/P&gt;&lt;P&gt;model Y=A|B;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Obviously if I do it like it is currently written A and B and A*B are tested over the MSE.&amp;nbsp; I'm not having much luck finding how to do this, but I know it can be done (and I'd imagine it's pretty easy to do).&amp;nbsp; I would appreciate any help anyone can give.&amp;nbsp; Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.&amp;nbsp; A and B are fixed factors, not rand if that matters at all.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 20:46:00 GMT</pubDate>
    <dc:creator>DPFW</dc:creator>
    <dc:date>2015-07-29T20:46:00Z</dc:date>
    <item>
      <title>Specify an error term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Specify-an-error-term/m-p/213654#M11537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am using proc GLM to analyze some data.&amp;nbsp; I want to specify the error term that is used to test certain factors.&amp;nbsp; In other words I don't want all the factors tested over the mean square error (MSE).&amp;nbsp; For example, imagine I have two factors A and B and their interaction A*B.&amp;nbsp; I would like to test A over A*B and B over A*B and then have A*B tested over the MSE.&amp;nbsp; I don't know how to specify the error term.&amp;nbsp; Can someone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glm data=work.myexcel;&lt;/P&gt;&lt;P&gt;class A B;&lt;/P&gt;&lt;P&gt;model Y=A|B;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Obviously if I do it like it is currently written A and B and A*B are tested over the MSE.&amp;nbsp; I'm not having much luck finding how to do this, but I know it can be done (and I'd imagine it's pretty easy to do).&amp;nbsp; I would appreciate any help anyone can give.&amp;nbsp; Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.&amp;nbsp; A and B are fixed factors, not rand if that matters at all.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 20:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Specify-an-error-term/m-p/213654#M11537</guid>
      <dc:creator>DPFW</dc:creator>
      <dc:date>2015-07-29T20:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Specify an error term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Specify-an-error-term/m-p/213655#M11538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to look at the TEST statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your example, two statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test h=A e=A*B;&lt;/P&gt;&lt;P&gt;test h=B e=A*B;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your PS, yes it does matter if they are fixed or random.&amp;nbsp; However, when you state that the error term is A*B, you are explicitly calling a fixed effect a random effect.&amp;nbsp; If A and B are fixed, then I don't understand how A*B can be anything but fixed, and at this stage of things, I like my denominators in F tests to refer to something on the random side.&amp;nbsp; But that is just me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 19:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Specify-an-error-term/m-p/213655#M11538</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2015-07-30T19:44:07Z</dc:date>
    </item>
  </channel>
</rss>

