R/entropy.R

Defines functions entropy.calculator

# this function calculates entropy of cohort distributions

entropy.calculator <- function(cohorts){
  x = entropy(table(cohorts),unit = "log2")
  return(x)
}
chenhong-dkfz/tornado.test.1 documentation built on Dec. 28, 2021, 7:28 p.m.