File: zORml.R

package info (click to toggle)
r-cran-epir 2.0.80%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,332 kB
  • sloc: makefile: 5
file content (9 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
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]
  
  c(mOR.p, mOR.l, mOR.u)
}