Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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)

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

Functions for Medical Statistics Book with some Demographic Data

v0.7.1
GPL (>= 2)
Authors
Minato Nakazawa <minato-nakazawa@umin.net>
Initial release
2021-05-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.