[R] Kolmogorov Smirnov p-values

2010-09-02 Thread Samsiddhi Bhattacharjee
I was just testing out ks.test() y - runif(1, min=0, max=1) ks.test(y, runif, min=0, max=1, alternative=greater) One-sample Kolmogorov-Smirnov test data: y D^+ = 0.9761, p-value 2.2e-16 alternative hypothesis: the CDF of x lies above the null hypothesis It seems that everytime

Re: [R] Kolmogorov Smirnov p-values

2010-09-02 Thread Alain Guillet
Hi, Are you sure you don't want to do ks.test(y, punif, min=0, max=1, alternative=greater) instead of what you tried? Alain On 02-Sep-10 15:52, Samsiddhi Bhattacharjee wrote: ks.test(y, runif, min=0, max=1, alternative=greater) -- Alain Guillet Statistician and Computer Scientist

Re: [R] Kolmogorov Smirnov p-values

2010-09-02 Thread Samsiddhi Bhattacharjee
oops sorryreally careless. thanks ! On Thu, Sep 2, 2010 at 10:03 AM, Alain Guillet alain.guil...@uclouvain.be wrote:  Hi, Are you sure you don't want to do   ks.test(y, punif, min=0, max=1, alternative=greater) instead of what you tried? Alain On 02-Sep-10 15:52, Samsiddhi