<?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: ANOVA with a random effect from clusters in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-with-a-random-effect-from-clusters/m-p/308145#M16306</link>
    <description>&lt;P&gt;You really (REALLY) don't want to use GLM for any situation with random effects. This was OK before procedures like MIXED and GLIMMIX were written, but GLM should be avoided now. For your example, use:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; mixed &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;mydata&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; treatment subjid&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; change &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; treatment&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;  &lt;BR /&gt;  random subjid&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;lsmeans treatment / diff;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Oct 2016 15:58:29 GMT</pubDate>
    <dc:creator>lvm</dc:creator>
    <dc:date>2016-10-30T15:58:29Z</dc:date>
    <item>
      <title>ANOVA with a random effect from clusters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-with-a-random-effect-from-clusters/m-p/307966#M16295</link>
      <description>&lt;P&gt;For&amp;nbsp;clustered data (multiple test sites from the same subject), if I want to do one way ANOVA to compare the baseline values in each group, is the followint the right way&amp;nbsp;to add the random effect from clustering in the ANOVA model ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm &lt;BR /&gt;  data=mydata;
  class treatment subjid;
  model change = treatment;&lt;BR /&gt;  random subjid;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Oct 2016 17:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-with-a-random-effect-from-clusters/m-p/307966#M16295</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-10-28T17:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: ANOVA with a random effect from clusters</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-with-a-random-effect-from-clusters/m-p/308145#M16306</link>
      <description>&lt;P&gt;You really (REALLY) don't want to use GLM for any situation with random effects. This was OK before procedures like MIXED and GLIMMIX were written, but GLM should be avoided now. For your example, use:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; mixed &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;mydata&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; treatment subjid&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; change &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; treatment&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;  &lt;BR /&gt;  random subjid&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;lsmeans treatment / diff;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2016 15:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ANOVA-with-a-random-effect-from-clusters/m-p/308145#M16306</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-10-30T15:58:29Z</dc:date>
    </item>
  </channel>
</rss>

