pool_odds_ratio function

Calculates the pooled odds ratio (OR) and related confidence interval.

Calculates the pooled odds ratio (OR) and related confidence interval.

pool_odds_ratio Calculates the pooled odds ratio and confidence interval.

pool_odds_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 odds_ratio

Returns

The pooled OR and confidence intervals.

Examples

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)

See Also

with.milist, odds_ratio

Author(s)

Martijn Heymans, 2021

  • Maintainer: Martijn Heymans
  • License: GPL (>= 2)
  • Last published: 2022-10-02