rweDist: Compute distance from F0 to F1

Description Usage Arguments Value

View source: R/rwe_tools.R

Description

Compute distance from F0 to F1

Usage

1
2
3
4
5
6
7
rweDist(
  sample.F0,
  sample.F1,
  n.bins = 10,
  type = c("ovl", "kl"),
  epsilon = 10^-6
)

Arguments

n.bins

number of bins for KL computation

type

type of distances. ovl: overlapping coefficient, kl: 1/(1+Kullback-Leibler divergence)

epsilon

small integer for Dirichlet smoothing

Value

a vector with the number of samples in group 0, the number of samples in group 1, and 1/(1+KL divergence) from group 0 to group 1 when type is kl, or the overlapping coefficient when type is ovl


olssol/rwetools documentation built on April 18, 2021, 11:42 a.m.