# Binomial distribution, one-sample test for proportion. # Example data from Carlson, S. 1985. A double blind test # of natal astrology. Nature 318:419-425. x=40 n=116 p0=1/3 prop.test(x,n,p=p0,alternative="greater",conf.level=.95,correct=TRUE) # options: alternative="two.sided" "greater" "less": "two.sided" gives # two-sided confidence interval, "greater" or "less" give one-sided CIs. # correct=TRUE applies the continuity correction to the normal approximation.