R/utils.R

#' Compute true FDR
#'
#'
#' @export
trueFDR <- function( candidates, outlier ) {
  return(length(which(!(candidates %in% outliers))) / length(candidates))
}


#' Compute true power
#'
#'
#' @export
truePower <- function( candidates, outlier ) {
  return(length(which(candidates %in% outliers)) / length(outliers))
}
cayek/BioCompToolsR documentation built on May 13, 2019, 1:20 p.m.