Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
multiplecomparison

Subject: multiplecomparison

From: David Edson

Date: 16 Oct, 2011 16:51:10

Message: 1 of 2

Hello dears,

I was using MULTCOMPARE function to capture variabilities in my data.

[comp,means,H,Gnames]=multcompare(stats);

comp--- is an output giving me the groups (2 groups), the lower bound, the estimate, and the upper bound of group differences.

My question is is there a possibility to know which groups are different without refering to the figure output we get.

thanks

Subject: multiplecomparison

From: Steve

Date: 18 Oct, 2011 14:35:46

Message: 2 of 2

"David Edson" <tojadeb@example.com> wrote in message <j7f21u$7q4$1@newscl01ah.mathworks.com>...
> Hello dears,
>
> I was using MULTCOMPARE function to capture variabilities in my data.
>
> [comp,means,H,Gnames]=multcompare(stats);
>
> comp--- is an output giving me the groups (2 groups), the lower bound, the estimate, and the upper bound of group differences.
>
> My question is is there a possibility to know which groups are different without refering to the figure output we get.
>
> thanks

The first output argument (comp) has one row for each pair of groups.
The basic idea is to identify rows where the lower bound (3rd column) and upper bound (5th column) for that pair have the same sign, thus do not contain zero (no difference) as a possibility. For example, adapting from the help text for multcompare:

load carsmall
[p,t,st] = anova1(MPG,Origin,'off');
[c,m,h,nms] = multcompare(st,'display','on');
% Groups where lower bound and upper bound for difference have the same sign.
different = find((c(:,3).*c(:,5))>0);
% Labels of those groups
[nms(c(different,1)), nms(c(different,2))]

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us