Why does mattest output different p-values when using bootstrapping?

조회 수: 5 (최근 30일)
Andy
Andy 2015년 6월 11일
댓글: Sreeja Banerjee 2015년 6월 12일
If I use the following code
a=[1:20,1:20]
b=[2:21,2:21]
pvalues1=mattest(a,b,'Bootstrap',1000)
pvalues2=mattest(a,b,'Bootstrap',1000)
pvalues1 does not equal pvalues2, however pvalues1(1)==pvalues1(2) or pvalues2(1)==pvalues2(2)
Why does this behaviour occur?
  댓글 수: 1
Sreeja Banerjee
Sreeja Banerjee 2015년 6월 12일
Hi Andy,
Which release of MATLAB are you using? Also what values do you get for pvalues1 and pvalues2? I think the data is ill-formed because I am not able to reproduce the same behavior.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by