R/scoring.R

Defines functions scoring

Documented in scoring

#' scoring
#'
#' @param k number of modified targets on the region
#' @param n number of targets on the region
#' @param N number of targets in the panel
#'
#' @return the confidence score
#' @export
#'
#' @examples
#' scoring(10,20,150)
scoring <- function(k, n, N){
  score <- log(1/(((n/N)^k)*(1-n/N)^(n-k)))*(k/n)
  return(score)
}

Try the ifCNVR package in your browser

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

ifCNVR documentation built on March 18, 2022, 6:15 p.m.