Re: [R] a question about ks.test

2014-02-25 Thread Greg Snow
I think both of your questions can be answered using simulations. If you simulate a bunch of datasets where the null hypothesis is true (data comes from the candidate distribution or 2 sets come from the same distribution) and compute the KS statistic for each (you can use the ks.test function to

[R] a question about ks.test

2014-02-25 Thread Shima Shahbazi
Hello, I have two questions about one sided ks.test. First, is there any function in R to find _the critical value_ for this test? I looked at the "Z. W. Birnbaum and Fred H. Tingey (1951) paper" and I found the formula "sqrt(-1/(2n)log(/a/))" but when I use the p-value from ks.test and this cr