Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to get p-values from multcompare?
Replies: 4   Last Post: Feb 11, 2013 12:21 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Markus Due Jakobsen

Posts: 43
Registered: 4/29/08
How to get p-values from multcompare?
Posted: Nov 10, 2008 4:55 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi
When using Anova1 to test for differences between group, Anova 1 returns a p-value that shows whether there is a difference or not. To make a further pairwise comparison between groups you can use the multcompare-function. Is this some sort of post hoc test? It uses ‘tukey-kramer’ as default ..
How is it possible to get the p-values of each pairwise comparison?
------
A multcompare example:
strength = [82 86 79 83 84 85 86 87 74 82 78 75 76 77 79 79 77... 78 82 79];
alloy = {'st','st','st','st','st','st','st','st', ... 'al1','al1','al1','al1','al1','al1','al2','al2','al2','al2','al2','al2'};
[p,a,s] = anova1(strength,alloy);
[c,m,h,nms] = multcompare(s);
-------
Holm.m from file exchange uses Holm-Sidak procedure for multiple Student's t tests to compare differences between groups. This m-file show all comparisons with p-values:

% Test p-value alpha Comment
% 1-4 0.0013 0.0085 Reject Ho
% 1-3 0.0078 0.0102 Reject Ho
% 1-2 0.0553 0.0127 Fail to reject Ho
% 2-4 0.1254 No comparison made Ho is accepted
% 2-3 0.3563 No comparison made Ho is accepted
% 3-4 0.5606 No comparison made Ho is accepted
-----------
Is it possible to do the same with multcompare? The information lies within the graph-output, however it is not included in the command-output.

Any suggestions
Markus



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.