<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/174343</link>
    <title>MATLAB Central Newsreader - Unbalanced ANOVA</title>
    <description>Feed for thread: Unbalanced ANOVA</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 14 Aug 2008 17:42:02 -0400</pubDate>
      <title>Unbalanced ANOVA</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/174343#449170</link>
      <author>Suman Seer</author>
      <description>Hello Everyone,&lt;br&gt;
&lt;br&gt;
I have been using anova1 till now to check for equality of&lt;br&gt;
means between groups with same number of elements. But now&lt;br&gt;
my data has unequal number of elements in groups and I&lt;br&gt;
believe this is the case of Unbalanced ANOVA. I havent been&lt;br&gt;
able to figure out a way or function to handle this case?&lt;br&gt;
I would appreciate any help with this.&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
Suman </description>
    </item>
    <item>
      <pubDate>Thu, 14 Aug 2008 18:33:01 -0400</pubDate>
      <title>Re: Unbalanced ANOVA</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/174343#449175</link>
      <author>Donn Shull</author>
      <description>&quot;Suman Seer&quot; &amp;lt;supernova5271@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g81qpa$6tk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hello Everyone,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have been using anova1 till now to check for equality of&lt;br&gt;
&amp;gt; means between groups with same number of elements. But now&lt;br&gt;
&amp;gt; my data has unequal number of elements in groups and I&lt;br&gt;
&amp;gt; believe this is the case of Unbalanced ANOVA. I havent &lt;br&gt;
been&lt;br&gt;
&amp;gt; able to figure out a way or function to handle this case?&lt;br&gt;
&amp;gt; I would appreciate any help with this.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&amp;gt; Suman &lt;br&gt;
&lt;br&gt;
group1 = 1:3;&lt;br&gt;
group2 = 2;&lt;br&gt;
&lt;br&gt;
groups = [group1, group2];&lt;br&gt;
names = {'gp1','gp1','gp1','gp2'};&lt;br&gt;
&lt;br&gt;
[p,anovatab,stats] = anova1(groups, names);</description>
    </item>
    <item>
      <pubDate>Thu, 14 Aug 2008 20:42:01 -0400</pubDate>
      <title>Re: Unbalanced ANOVA</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/174343#449203</link>
      <author>Suman Seer</author>
      <description>Hi Donn,&lt;br&gt;
&lt;br&gt;
Thanks for your reply. This is how I have been using &lt;br&gt;
anova1 before but my question is, since the groups have &lt;br&gt;
unequal elements, is the anova1 test still valid or does &lt;br&gt;
one have to make any changes?&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
Hussain&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Donn Shull&quot; &amp;lt;donn.shull.no_spam@aetoolbox.com&amp;gt; wrote in &lt;br&gt;
message &amp;lt;g81tot$co6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Suman Seer&quot; &amp;lt;supernova5271@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;g81qpa$6tk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Hello Everyone,&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I have been using anova1 till now to check for &lt;br&gt;
equality of&lt;br&gt;
&amp;gt; &amp;gt; means between groups with same number of elements. But &lt;br&gt;
now&lt;br&gt;
&amp;gt; &amp;gt; my data has unequal number of elements in groups and I&lt;br&gt;
&amp;gt; &amp;gt; believe this is the case of Unbalanced ANOVA. I havent &lt;br&gt;
&amp;gt; been&lt;br&gt;
&amp;gt; &amp;gt; able to figure out a way or function to handle this &lt;br&gt;
case?&lt;br&gt;
&amp;gt; &amp;gt; I would appreciate any help with this.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thanks&lt;br&gt;
&amp;gt; &amp;gt; Suman &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; group1 = 1:3;&lt;br&gt;
&amp;gt; group2 = 2;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; groups = [group1, group2];&lt;br&gt;
&amp;gt; names = {'gp1','gp1','gp1','gp2'};&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [p,anovatab,stats] = anova1(groups, names);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Thu, 14 Aug 2008 21:17:02 -0400</pubDate>
      <title>Re: Unbalanced ANOVA</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/174343#449210</link>
      <author>Donn Shull</author>
      <description>&quot;Suman Seer&quot; &amp;lt;supernova5271@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g825ap$mkf$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi Donn,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks for your reply. This is how I have been using &lt;br&gt;
&amp;gt; anova1 before but my question is, since the groups have &lt;br&gt;
&amp;gt; unequal elements, is the anova1 test still valid or does &lt;br&gt;
&amp;gt; one have to make any changes?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks.&lt;br&gt;
&amp;gt; Hussain&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Donn Shull&quot; &amp;lt;donn.shull.no_spam@aetoolbox.com&amp;gt; wrote in &lt;br&gt;
&amp;gt; message &amp;lt;g81tot$co6$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Suman Seer&quot; &amp;lt;supernova5271@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;g81qpa$6tk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Hello Everyone,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I have been using anova1 till now to check for &lt;br&gt;
&amp;gt; equality of&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; means between groups with same number of elements. &lt;br&gt;
But &lt;br&gt;
&amp;gt; now&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; my data has unequal number of elements in groups and I&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; believe this is the case of Unbalanced ANOVA. I &lt;br&gt;
havent &lt;br&gt;
&amp;gt; &amp;gt; been&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; able to figure out a way or function to handle this &lt;br&gt;
&amp;gt; case?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; I would appreciate any help with this.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Suman &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; group1 = 1:3;&lt;br&gt;
&amp;gt; &amp;gt; group2 = 2;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; groups = [group1, group2];&lt;br&gt;
&amp;gt; &amp;gt; names = {'gp1','gp1','gp1','gp2'};&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; [p,anovatab,stats] = anova1(groups, names);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Hi Hussain,&lt;br&gt;
&lt;br&gt;
That question is beyond my area expertise. Perhaps someone &lt;br&gt;
else can answer that. My guess is that since specifically &lt;br&gt;
addresses how to use anova1 with unequal groups that it &lt;br&gt;
would be valid. Anyone else?&lt;br&gt;
&lt;br&gt;
Donn</description>
    </item>
    <item>
      <pubDate>Fri, 15 Aug 2008 01:43:37 -0400</pubDate>
      <title>Re: Unbalanced ANOVA</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/174343#449238</link>
      <author>Tom Lane</author>
      <description>&amp;gt; Thanks for your reply. This is how I have been using&lt;br&gt;
&amp;gt; anova1 before but my question is, since the groups have&lt;br&gt;
&amp;gt; unequal elements, is the anova1 test still valid or does&lt;br&gt;
&amp;gt; one have to make any changes?&lt;br&gt;
&lt;br&gt;
Suman, anova1 accepts unbalanced data and handles that situation properly.&lt;br&gt;
&lt;br&gt;
In contrast, you can't use unbalanced data with anova2 -- the input format &lt;br&gt;
just doesn't permit it.  Fortunately you can use anovan for unbalanced data &lt;br&gt;
with two or more grouping variables.&lt;br&gt;
&lt;br&gt;
-- Tom </description>
    </item>
    <item>
      <pubDate>Fri, 29 May 2009 11:41:01 -0400</pubDate>
      <title>Re: Unbalanced ANOVA</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/174343#653350</link>
      <author>Farah </author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
I'm new to MatLab and have come against the same problem as Suman. Only I have about 150 different groups, and the number of elements in each varies from 30 to 7000, with no two groups having the same number of elements necessarily. Also the values of the elements themselves are completely unrelated to each other (they are microarray probe log2ratios). &lt;br&gt;
Anova1 is the test I need to do, but I don't quite understand how to apply the function for my case. Can anyone please show me some pointers?  I've read Don's reply to Suman but I'm not clear on what it means.&lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
&lt;br&gt;
&quot;Tom Lane&quot; &amp;lt;tlane@mathworks.com&amp;gt; wrote in message &amp;lt;g82n0a$eqr$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Thanks for your reply. This is how I have been using&lt;br&gt;
&amp;gt; &amp;gt; anova1 before but my question is, since the groups have&lt;br&gt;
&amp;gt; &amp;gt; unequal elements, is the anova1 test still valid or does&lt;br&gt;
&amp;gt; &amp;gt; one have to make any changes?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Suman, anova1 accepts unbalanced data and handles that situation properly.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; In contrast, you can't use unbalanced data with anova2 -- the input format &lt;br&gt;
&amp;gt; just doesn't permit it.  Fortunately you can use anovan for unbalanced data &lt;br&gt;
&amp;gt; with two or more grouping variables.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- Tom &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
  </channel>
</rss>

