[R] proportions - finite population correction

Thu Jun 15 12:52:06 CEST 2000

> Dear R-users!
> I am using R 1.0.0 and Windows NT 4.0.
Suppose I have a population of N=100 subjects, a binomial variable and a
random sample of n=20 subjects from my population, giving 15 "successes". I
am interested in obtaining a confidence interval for the proportion of
"successes" in my population.

In R, I can use
> library(ctest)
> binom.test(15, 20)
to get an exact confidence interval, but under the assumption of an infinite

Now I could modify binom.test so that a finite population correction is
applied (the formulae are right here in the book before me); but maybe
somebody has already done this, or maybe there are other (R-)functions that
can already do that?

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list