Re: [R] Hi~problem with the two sample test: ks2Test in the package of fbasics

From: Ben Bolker <>
Date: Mon, 07 Jul 2008 13:54:10 +0000 (UTC)

l y <pligly <at>> writes:

> Hi everyone, when I use the two sample Kolmogorov¨CSmirnov ks2Test like this:
> x=read.table("e:/x.txt")
> y=rstable(1000,alpha,beta,gamma,delta)
> I alway get results as follows:
> Warning messages:


> Strangely,I got a total same result! I really want to know whether there are
> any other sources that could induce this result except for the continuity
> of distribution? If there are, what are they?
> Any help will be much appreciated!
> Lily

  The problem is that you have ties in your *data* -- nothing to do with the distribution you are testing against.   You could try adding a tiny bit of random noise to your data and see if it makes any difference in the answers -- e.g.


  Others may have better ideas.
  Make sure to look at ?ks.test and read the paragraph about ties carefully ...

  Ben Bolker mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 07 Jul 2008 - 13:58:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Jul 2008 - 14:31:25 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive