[R] What is ks.test saying?
kjetil.kjernsmo at astro.uio.no
Thu Apr 27 14:57:09 CEST 2000
I have two matrices of equal dimension ll and lu that I want to do a
ks.test on corresponding rows in these matrices (dim(ll) is  101 100).
If I do e.g. > ks.test(ll[50,],lu[50,])
just for testing, it displays a lot of numbers, and some more info:
 -3.000000e-02 -4.000000e-02 -4.000000e-02 -3.000000e-02 -4.000000e-02
 -3.000000e-02 -4.000000e-02 -3.000000e-02 -2.000000e-02 -3.000000e-02
 -2.000000e-02 -1.000000e-02 -3.469447e-18 -1.000000e-02 -3.469447e-18
Two-sample Kolmogorov-Smirnov test
data: ll[50, ] and lu[50, ]
D = 0.11, p-value = 0.5806
alternative hypothesis: two.sided
cannot compute correct p-values with ties in: ks.test(ll[50, ], lu[50, ])
The documentation doesn't discuss the output in any length, so I am
wondering what it tells me. The D is the test statistic if I've got it
right, and there is a p-value, but if I understand the warning, it isn't
exact. Is it possible to qualitatively say how it differs from the exact
p-value? And, what is the long vector that is printed?
Graduate astronomy-student Problems worthy of attack
University of Oslo, Norway Prove their worth by hitting back
E-mail: kjetikj at astro.uio.no - Piet Hein
Webmaster at skepsis.no
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help