pool_risk_ratio {miceafter} | R Documentation |
Calculates the pooled risk ratio (RR) and related confidence interval.
Description
pool_risk_ratio
Calculates the pooled risk ratio and
confidence interval.
Usage
pool_risk_ratio(object, conf.level = 0.95, dfcom = NULL)
Arguments
object |
An object of class 'mistats' ('Multiply Imputed Statistical Analysis'). |
conf.level |
Confidence level of the confidence intervals. |
dfcom |
Complete data degrees of freedom. Default
number is taken from function |
Value
The pooled RR and confidence intervals.
Author(s)
Martijn Heymans, 2021
See Also
Examples
library(magrittr)
lbpmilr %>%
df2milist(impvar="Impnr") %>%
with(expr=risk_ratio(Chronic ~ Radiation)) %>%
pool_risk_ratio()
# Same as
imp_dat <- df2milist(lbpmilr, impvar="Impnr")
ra <- with(imp_dat, expr=risk_ratio(Chronic ~ Radiation))
res <- pool_risk_ratio(ra)
[Package miceafter version 0.5.0 Index]