R/tippett.R

#' tippett.
#' @import stats
#' @import Hmisc


#' @param p vector of pvalues
#' @param adjust if correlation has to be taken into account
#' @param R correlation matrix

tippett <- function(p, adjust, R) {

  k <- length(p)
    if (adjust == "no") {
      t <- 1 - (1 - min(p))^k
      poolp <- t

    } else if (adjust == "yes")  {
      m <- m_effective(R = R)
      t <- 1 - (1 - min(p))^m
      poolp <- t
    }

  return(poolp)

}

Try the poolVIM package in your browser

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

poolVIM documentation built on May 1, 2019, 9:13 p.m.