Error: could not find function
On 23.01.2010 17:50, Remus Suciu wrote:
Hi. I'm trying to create an Agresti-Coull confidence interval without using the binom package. Despite many trials, I keep getting the same problem- see below.
y=334 n=1160 alpha=.05 b=(y+.5*qnorm(1-alpha/2)**2)/(n+qnorm(1-alpha/2)**2) b
[1] 0.288631
ac=b+qnorm(1-alpha/2)*sqrt(b(1-b)/(n+qnorm(1-alpha/2)**2))
Error: could not find function "b" What am I missing?
The "*" between b and (1-b), I guess. Uwe Ligges
What am I doing wrong? Thank you, Remus [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.