R/DiscriminantPower.R

Defines functions DiscriminantPower

Documented in DiscriminantPower

DiscriminantPower <-
function(resTable){
  sensitivity <- resTable$TP/(resTable$TP + resTable$FN)
  specificity <- resTable$TN/(resTable$FP + resTable$TN)
  
  X <- sensitivity/(1 - sensitivity)
  Y <- specificity/(1 - specificity)
  DP <- (sqrt(3)/pi) * (log(X) + log(Y))
  
  return(DP)
}

Try the synRNASeqNet package in your browser

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

synRNASeqNet documentation built on May 2, 2019, 6:01 a.m.