[R] Kolmogorov-Smirnov tests: overflow

Arne Mueller a.mueller at cancer.org.uk
Sun Jun 23 02:36:55 CEST 2002

Dear All,

I've got a problem with ks.test. I've two realy large vectors, that I'd
like to test, but I get an overflow, and the p-value cannot be

> length(genomesv)
[1] 390025
> length(scopv)
[1] 140002
> ks.test(genomesv, scopv)

        Two-sample Kolmogorov-Smirnov test

data:  genomesv and scopv 
D = 0.2081, p-value = NA
alternative hypothesis: two.sided 

Warning messages: 
1: NAs produced by integer overflow in: n.x * n.y 
2: NAs produced by integer overflow in: n.x * n.y 
3: cannot compute correct p-values with ties in: ks.test(genomesv,

Is there anything I can do about this? I'd realy like to know what the
p-value is ;-)

	thanks a lot for help,


Arne Mueller
Biomolecular Modelling Laboratory
Cancer Research UK, London Research Institute
44 Lincoln's Inn Fields
London WC2A 3PX, U.K.
phone1 : +44-(0)20-72693405      | fax  : +44-(0)20-75945789
phone2 : +44-(0)20-75945776      | mobil: +44-(0)7984601749
email  : a.mueller at cancer.org.uk | http://www.bmm.icnet.uk
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 mailing list