RCI: Calculate risk and its confidence interval

View source: R/fmsb.R

RCIR Documentation

Calculate risk and its confidence interval

Description

Calculate risk and its confidence interval by the simple asymptotic method.

Usage

 RCI(a, N, conf.level=0.9) 

Arguments

a

Number of cases

N

Number of population at risk

conf.level

Probability for confidence intervals. Default is 0.9.

Value

R

Point estimate of risk.

RL

Lower limit of confidence interval

RU

Upper limit of confidence interval

Author(s)

Minato Nakazawa minatonakazawa@gmail.com https://minato.sip21c.org/

References

Rothman KJ (2012) Epidemiology: An Introduction. 2nd Ed., Oxford University Press, Oxford.

Examples

# By simple asymptotic method
RCI(20, 100)
# By Wilson Score (without continuity correction)
prop.test(20, 100, conf.level=0.9, correct=FALSE)
# By Exact method
binom.test(20, 100, conf.level=0.9)

fmsb documentation built on May 29, 2024, 2:02 a.m.

Related to RCI in fmsb...