Learn R Programming

fmsb (version 0.7.6)

RCI: 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)

Value

R

Point estimate of risk.

RL

Lower limit of confidence interval

RU

Upper limit of confidence interval

Arguments

a

Number of cases

N

Number of population at risk

conf.level

Probability for confidence intervals. Default is 0.9.

References

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab