Path: news.mathworks.com!not-for-mail
From: "Donn Shull" <donn.shull.no_spam@aetoolbox.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Unbalanced ANOVA
Date: Thu, 14 Aug 2008 21:17:02 +0000 (UTC)
Organization: L &#38; D Engineering LLC
Lines: 56
Message-ID: <g827ce$j42$1@fred.mathworks.com>
References: <g81qpa$6tk$1@fred.mathworks.com> <g81tot$co6$1@fred.mathworks.com> <g825ap$mkf$1@fred.mathworks.com>
Reply-To: "Donn Shull" <donn.shull.no_spam@aetoolbox.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1218748622 19586 172.30.248.35 (14 Aug 2008 21:17:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 14 Aug 2008 21:17:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 219306
Xref: news.mathworks.com comp.soft-sys.matlab:485566



"Suman Seer" <supernova5271@yahoo.com> wrote in message 
<g825ap$mkf$1@fred.mathworks.com>...
> Hi Donn,
> 
> Thanks for your reply. This is how I have been using 
> anova1 before but my question is, since the groups have 
> unequal elements, is the anova1 test still valid or does 
> one have to make any changes?
> 
> Thanks.
> Hussain
> 
> 
> 
> "Donn Shull" <donn.shull.no_spam@aetoolbox.com> wrote in 
> message <g81tot$co6$1@fred.mathworks.com>...
> > "Suman Seer" <supernova5271@yahoo.com> wrote in message 
> > <g81qpa$6tk$1@fred.mathworks.com>...
> > > Hello Everyone,
> > > 
> > > I have been using anova1 till now to check for 
> equality of
> > > means between groups with same number of elements. 
But 
> now
> > > my data has unequal number of elements in groups and I
> > > believe this is the case of Unbalanced ANOVA. I 
havent 
> > been
> > > able to figure out a way or function to handle this 
> case?
> > > I would appreciate any help with this.
> > > 
> > > Thanks
> > > Suman 
> > 
> > group1 = 1:3;
> > group2 = 2;
> > 
> > groups = [group1, group2];
> > names = {'gp1','gp1','gp1','gp2'};
> > 
> > [p,anovatab,stats] = anova1(groups, names);
> > 
> > 
> 

Hi Hussain,

That question is beyond my area expertise. Perhaps someone 
else can answer that. My guess is that since specifically 
addresses how to use anova1 with unequal groups that it 
would be valid. Anyone else?

Donn