View source: R/pool_odds_ratio.R
pool_odds_ratio | R Documentation |
pool_odds_ratio
Calculates the pooled odds ratio and
confidence interval.
pool_odds_ratio(object, conf.level = 0.95, dfcom = NULL)
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 |
The pooled OR and confidence intervals.
Martijn Heymans, 2021
with.milist
, odds_ratio
library(magrittr) lbpmilr %>% df2milist(impvar="Impnr") %>% with(expr=odds_ratio(Chronic ~ Radiation)) %>% pool_odds_ratio() # Same as imp_dat <- df2milist(lbpmilr, impvar="Impnr") ra <- with(imp_dat, expr=odds_ratio(Chronic ~ Radiation)) res <- pool_odds_ratio(ra)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.