calculate_diff_rates.Rd
Derive mean difference and associated confidence intervals for exposure-adjusted rates (per 100 PYs)
calculate_diff_rates(rate1, rate2, py1, py2, cl)
(numeric
)
Event or incidence rate (per 100 PYs) in active treatment
(numeric
)
Event or incidence rate (per 100 PYs) in comparator treatment
(numeric
)
100PEY or 100PYAR in active treatment
(numeric
)
100PEY or 100PYAR in comparator treatment
(numeric
)
confidence level
calculate_diff_rates(
rate1 = 152.17, rate2 = 65.21, py1 = 230, py2 = 230,
cl = 0.95
)
#> [2024-06-28 15:23:50] >
#> CI for treatment difference in exposure-adjusted rates
#> is calculated and saved in a dataframe
#> diff se lower upper
#> 1 86.96 0.9721782 85.05457 88.86543