The following binomial test (exact binomial test) has a p-value of 0.05698, greater than 0.05 by a bit. 95% CI is (0.5698, 0.8077).
binom.test(x = 44, n = 63, p = 0.8, alternative = "two.sided")
The following proportions test (without Yates' continuity correction) has a p-value of 0.04382, less than 0.05 by a bit. 95% CI is (0.5764, 0.7976).
prop.test(x = x1, n = n1, p = 0.8, alternative = "two.sided", correct = FALSE)
So, which test should I choose? Which p-value to report? Thanks.
prop.test()
? Some textbooks say that when the sample size $n$ is large, the binomial distribution is cumbersome to work with, and the normal approximation can be considerably more convenient. I guess such textbooks are saying so in the context of pen-and-paper calculations? With computers, is there still a need to do such approximations? $\endgroup$prop.test()
uses the score test, not a Wald test (which I guess is what the textbooks were talking about). Anyway, in practice, there is no reason not to usebinom.test()
, as this always gives exact P-values. $\endgroup$