Limit of p value from multcompare?
이전 댓글 표시
(I'm having exactly the same question as this one on Stack Exchange, so I'm quoting it verbatim as follows)
It seems to me that MATLAB multcompare cannot output any p value (for pairwise comparison) smaller than 9.56061674273201e-10.
To confirm this, I did
y = [ones(100,1) 2*ones(100,1) 3*ones(100,1)];
[p,tbl,stats] = anova1(y);
[c,~,~,gnames] = multcompare(stats);
p = c(:,6)
and got p values for the three pairwise comparisons
p =
9.56061674273201e-10
9.56061674273201e-10
9.56061674273201e-10
Why is there this limit in MATLAB? How should I report my p values then? It looks strange to report exactly same values for several different tests.
댓글 수: 5
Brendan Hamm
2016년 6월 27일
I believe this has to do with the tests being performed. ANOVA is returning a p-statistic from an F-test and multcompare is using the Tukey's honest significance test to correct for the Type I error rate. In doing so MATLAB is actually using the relationship with the t-distribution rather than a table of Tukey's values. It seems likely that this is just roundoff error from the extra computations to get there, but I would feel safe reporting that the p-value is zero in your above case. If you really want throw in a footnote and give the precision.
the cyclist
2016년 6월 28일
편집: the cyclist
2016년 6월 29일
P-values should never be reported as 0. That is equivalent to saying the observed result is impossible, given the null hypothesis.
What should be reported in cases like this is somewhat dependent on one's field (because there are different conventions). It's common in medical research, for example, to never report P-values less than 0.001, reporting "P < 0.001" instead.
There are theoretical underpinnings to this, related to the precision of the P-value itself.
Eric Zhang
2016년 6월 28일
Eric Zhang
2016년 6월 28일
편집: Eric Zhang
2016년 6월 28일
the cyclist
2016년 6월 29일
I've attached a couple references that I've found useful.
답변 (0개)
카테고리
도움말 센터 및 File 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!