Re: [R] Two-tailed exact binomial test with binom.test and sum(dbinom(...))

2014-12-15 Thread Andrews, Chris
PM To: r-help@r-project.org Subject: [R] Two-tailed exact binomial test with binom.test and sum(dbinom(...)) Hi R experts, I have a few related questions that are actually a combination of an R and a hopefully not too trivial (?) statistics question, namely regarding the computation of an exact two-t

Re: [R] Two-tailed exact binomial test with binom.test and sum(dbinom(...))

2014-12-14 Thread peter dalgaard
> On 14 Dec 2014, at 13:54 , Stefan Evert wrote: > > >> (3) What is people's view on computing the two-tailed test like this, >> which leads to an ns result unlike binom.test? >> 2*sum(dbinom(51:235, 235, 1/6)) # 0.05308849 > > This is a popular approximation (which I also use most of the tim

Re: [R] Two-tailed exact binomial test with binom.test and sum(dbinom(...))

2014-12-14 Thread Stefan Evert
If your null hypothesis is that the probability of a success is 0.6, i.e. H0: p=0.6, then those > (a) Let's also assume we have an H1 that there are more than 6 > successes > > (b) Now let's assume we have an H1 that there are fewer than 6 > successes > > (1). My understanding would be that, i

[R] Two-tailed exact binomial test with binom.test and sum(dbinom(...))

2014-12-13 Thread Robert Zimbardo
Hi R experts, I have a few related questions that are actually a combination of an R and a hopefully not too trivial (?) statistics question, namely regarding the computation of an exact two-tailed binomial test. Let's assume the following scenario: - number of trials = 10 - p of success = 0.6