Learn R Programming

liver (version 1.23)

prop.conf: Confdidence interval for proportion

Description

Compute a confidence interval for the proportion of a response variable using the normal distribution.

Usage

prop.conf(x, n, conf = 0.95, ...)

Value

A vector with two values: lower and upper confidence limits for the proportion of the response variable.

Arguments

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 x is a matrix or a table.

conf

confidence level of the interval.

...

further arguments to be passed to prop.test.

Author

Reza Mohammadi a.mohammadi@uva.nl

Examples

Run this code
data(churn)

prop.conf(table(churn$churn), conf = 0.9)

Run the code above in your browser using DataLab