Re: [R] KS test and theoretical distribution

2011-10-06 Thread Prof Brian Ripley
On Thu, 6 Oct 2011, francogrex wrote: x <- runif(100) y <- runif(100) ks.test(x,y) Two-sample Kolmogorov-Smirnov test data: x and y D = 0.11, p-value = 0.5806 alternative hypothesis: two-sided ok I expected that, but: ks.test(runif(100), "runif") One-sample Kolmogorov-Smirn

Re: [R] KS test and theoretical distribution

2011-10-06 Thread Achim Zeileis
On Thu, 6 Oct 2011, francogrex wrote: x <- runif(100) y <- runif(100) ks.test(x,y) Two-sample Kolmogorov-Smirnov test data: x and y D = 0.11, p-value = 0.5806 alternative hypothesis: two-sided ok I expected that, but: ks.test(runif(100), "runif") One-sample Kolmogorov-Smirn

[R] KS test and theoretical distribution

2011-10-06 Thread francogrex
> x <- runif(100) > y <- runif(100) > ks.test(x,y) Two-sample Kolmogorov-Smirnov test data: x and y D = 0.11, p-value = 0.5806 alternative hypothesis: two-sided ok I expected that, but: > ks.test(runif(100), "runif") One-sample Kolmogorov-Smirnov test data: runif(100) D =