[R] What can I use instead of ks.test for the binomial distribution ?

2010-03-13 Thread Tal Galili
Hello all, A friend just showed me how ks.test fails to work with pbinom for small size. Example: x-rbinom(1,10,0.5) x2-rbinom(1,10,0.5) ks.test(x,pbinom,10,0.5) ks.test(x,pbinom,size = 10, prob= 0.5) ks.test(x,x2) The tests gives significant p values, while the x did come from binom

Re: [R] What can I use instead of ks.test for the binomial distribution ?

2010-03-13 Thread David Winsemius
On Mar 13, 2010, at 2:34 PM, Tal Galili wrote: Hello all, A friend just showed me how ks.test fails to work with pbinom for small size. Example: x-rbinom(1,10,0.5) x2-rbinom(1,10,0.5) ks.test(x,pbinom,10,0.5) ks.test(x,pbinom,size = 10, prob= 0.5) ks.test(x,x2) The tests gives

Re: [R] What can I use instead of ks.test for the binomial distribution ?

2010-03-13 Thread Tal Galili
Thanks David, I apologize (I did search before posting, but only for ks.test and didn't came a cross references through my uncareful skimming) Thanks, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845