prop.conf | R Documentation |
Compute a confidence interval for the proportion of a response variable using the normal distribution.
prop.conf(x, n, conf = 0.95, ...)
x |
a vector of counts of successes, a one-dimensional table with two entries, or a two-dimensional table (or matrix) with 2 columns, giving the counts of successes and failures, respectively. |
n |
a vector of counts of trials; ignored if |
conf |
confidence level of the interval. |
... |
further arguments to be passed to |
A vector with two values: lower and upper confidence limits for the proportion of the response variable.
Reza Mohammadi a.mohammadi@uva.nl
data(churn)
prop.conf(table(churn$churn), conf = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.