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 18:33:01 +0000 (UTC)
Organization: L &#38; D Engineering LLC
Lines: 24
Message-ID: <g81tot$co6$1@fred.mathworks.com>
References: <g81qpa$6tk$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 1218738781 13062 172.30.248.35 (14 Aug 2008 18:33:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 14 Aug 2008 18:33:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 219306
Xref: news.mathworks.com comp.soft-sys.matlab:485531



"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);