ci: Confidence intervals for a difference between two proportions

ciR Documentation

Confidence intervals for a difference between two proportions

Description

Confidence intervals for a difference between two proportions

Usage

ci_prop_diff(t1, n1, t2, n2, sig_level = 0.95)

ci_rate_ratio(r1, n1, r2, n2, sig_level = 0.95)

ci_risk_ratio(n1, t1, n2, t2, sig_level = 0.95)

Arguments

t1

Proportion 1

n1

Sample size 1

t2

Proportion 2

n2

Sample size 2

sig_level

Significance level

r1

Incidence rate 1

r2

Incidence rate 2

Value

numeric

References

https://www.bmj.com/content/343/bmj.d2304

Examples


ci_prop_diff(0.56, 80, 0.76, 80)


ci_rate_ratio(4.1, 157, 4.4, 178)

ci_rate_ratio(4.1, 157, 4.4, 178)


OlisaNsonwu/jurithy documentation built on Aug. 31, 2024, 12:20 a.m.