I was just testing out ks.test()> y <- runif(10000, 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 I run it, I get a highly significant p-value (for two sided or one-sided , exact=TRUE or FALSE). Can anybody tell me what is going on ?
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 SMCS - IMMAQ - Universit? catholique de Louvain Bureau c.316 Voie du Roman Pays, 20 B-1348 Louvain-la-Neuve Belgium tel: +32 10 47 30 50