powered by
Produces confidence intervals for proportions through normal approximation and using exact methods based on the Beta distribution.
propci(x, n=NULL, conf.level=.95)
An integer value representing the number of ones (successes) or a variable with only zeros, ones and (potentially) NAs.
If x is an integer, then n is the total number of observations from which the number of successes comes. Otherwise, n will be disregarded.
x
n
Level of confidence for the interval
A matrix giving the normal approximation and exact confidence intervals.
# NOT RUN { data(alberta) propci(alberta$sex-1) # }
Run the code above in your browser using DataLab