ci_proportion: calculate ci for proportion

View source: R/CI.R

ci_proportionR Documentation

calculate ci for proportion

Description

calculate ci for proportion

Usage

ci_proportion(x, n = NULL, conf.level = 0.95)

Arguments

x

vector of positive integers representing the number of occurrences of each class, or number of successes(n is needed)

n

number of trials.

conf.level

confidence level, defaults to 0.95.

Value

A vector with 3 elements for estimate, lower confidence interval and upper for the upper one.

Examples

ci_proportion(c(2,3,4))
ci_proportion(x = 37, n = 43)

the8thday/ClinStats documentation built on July 20, 2022, 11:36 p.m.