Wilson CI
ci_prop_wilson.Rd
Calculates the Wilson interval by calling stats::prop.test()
.
Also referred to as Wilson score interval.
Arguments
- x
(
binary
/numeric
/logical
)
vector of a binary values, i.e. a logical vector, or numeric with valuesc(0, 1)
- conf.level
(
scalar numeric
)
a scalar in (0,1) indicating the confidence level. Default is 0.95- correct
(
logical
)
apply continuity correction.- data
(
data.frame
)
Optional data frame containing the variables specified inx
andby
.