Re: [R] The difference between chisq.test binom.test and pbinom

2012-08-21 Thread Tal Galili
Dear Peter, Your explanation makes perfect sense, thank you. With regards, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |

[R] The difference between chisq.test binom.test and pbinom

2012-08-20 Thread Tal Galili
Hello all, I am trying to understand the different results I am getting from the following 3 commands: chisq.test(c(62,50), p = c(0.512,1-0.512), correct = F) # p-value = 0.3788 binom.test(x=62,n=112, p= 0.512) # p-value = 0.3961 2*(1-pbinom(62,112, .512)) # p-value = 0.329 Well, the binom.test

Re: [R] The difference between chisq.test binom.test and pbinom

2012-08-20 Thread Peter Ehlers
On 2012-08-20 12:24, Tal Galili wrote: Hello all, I am trying to understand the different results I am getting from the following 3 commands: chisq.test(c(62,50), p = c(0.512,1-0.512), correct = F) # p-value = 0.3788 binom.test(x=62,n=112, p= 0.512) # p-value = 0.3961 2*(1-pbinom(62,112, .512))