wilson.ci: Wilson (score) confidence interval for a population...

View source: R/wilson.ci.R

wilson.ciR Documentation

Wilson (score) confidence interval for a population proportion.

Description

Wilson (score) confidence interval for a population proportion.

Usage

wilson.ci(x, n, conf.level = 0.95)

Arguments

x

number of events

n

number of samples

conf.level

confidence level

Details

Uses defintion in Agresti.

Value

conf.int

estimated confidence interval

Author(s)

John Kloke, Joseph McKean

References

Agresti (2002), Categorical data analysis, New York: John Wiley & Sons, Inc.

See Also

prop.test

Examples

n <- 100
x <- rbinom(1,n,0.33)
wilson.ci(n,x)

npsm documentation built on Nov. 15, 2023, 1:08 a.m.