필터 지우기
필터 지우기

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