R/zORml.R

Defines functions zORml

zORml <- function(dat, conf.level){
  mOR.tmp <- suppressWarnings(fisher.test(dat, conf.int = TRUE, conf.level = conf.level))
  
  mOR.p <- as.numeric(mOR.tmp$estimate)
  mOR.l <- as.numeric(mOR.tmp$conf.int)[1]
  mOR.u <- as.numeric(mOR.tmp$conf.int)[2]
  
  rval <- c(mOR.p, mOR.l, mOR.u)
  return(rval)
}  

Try the epiR package in your browser

Any scripts or data that you put into this service are public.

epiR documentation built on Dec. 15, 2025, 9:06 a.m.