ks2test是在fBasics包里,two sample test,我自己运行的时候总是出现以下结果:
x=read.table("e:/x.txt");
y=rstable(1000,alpha,beta,gamma,delta);
ks2Test(x,y);
Warning messages:
1: In ks.test(x = x, y = y, alternative = "two.sided") :
cannot compute correct p-values with ties
2: In ks.test(x = x, y = y, exact = TRUE, alternative = "two.sided") :
cannot compute correct p-values with ties
3: In ks.test(x = x, y = y, alternative = "less") :
cannot compute correct p-values with ties
4: In ks.test(x = x, y = y, alternative = "greater") :
cannot compute correct p-values with ties
这句话是翻译成:在有连接的情况下无法正确计算pvalue吗?这又是什么意思呢?我知道one sample ks test要求分布是连续的,不知道two sample test是否也有此要求,就算有,我用的stable distribution也是连续的,我还试了用rnorm代替rstable也得到同样的结果,用ks.test(x,"norm")得到的就是那句“在有连接的情况下无法正确计算pvalue”。想知道除了分布的连续性,还有什么原因会使得不能正确计算p value?谢谢!Any help will be much appreciated!!!