column 6 at matrix 'm' of multcompare

2 次查看(过去 30 天)
Jinsol
Jinsol 2014-10-7
回答: Tom Lane 2014-10-9
using multcompare I did ANOVA analysis. It says that matrix 'm' has to be p by 6 matrix. However, my result only has 5 columns, with no 6th column. I need the p-value. What can I do to get the 6th column
  1 个评论
Bruno Pop-Stefanov
Bruno Pop-Stefanov 2014-10-8
The m output matrix contains only 2 columns. I suppose you are referring to the first output argument, c. The matrix c should always contain 6 columns. From the doc:
Matrix of multiple comparison results, returned as an p-by-6 matrix of scalar values, where p is the number of pairs of groups. Each row of the matrix contains the result of one paired comparison test. Columns 1 and 2 contain the indices of the two samples being compared. Column 3 contains the lower confidence interval, column 4 contains the estimate, and column 5 contains the upper confidence interval. Column 6 contains the p-value for the hypothesis test that the corresponding mean difference is not equal to 0.
If the first output has only 5 columns, can you include reproduction code so that we can see what's going wrong? Don't forget to attach your data as a MAT file so that we can run your code.
Thanks.

请先登录,再进行评论。

回答(1 个)

Tom Lane
Tom Lane 2014-10-9
The sixth column was added some time after the multcompare function was originally created. Could it be that you are looking at the doc on the web, and you are running an older release? Try "help multcompare" and see what it says.

类别

Help CenterFile Exchange 中查找有关 Analysis of Variance and Covariance 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by