Skip to contents

Computes Jensen-Shannon divergence, which is based on Kullback-Leibler divergence. deq(JSD(A||B)=12 ( KL(A||M)+KL(B||M) ))

Usage

distJSD2(inMatrixTr, inMatrixCo)

Arguments

inMatrixTr

a positive-valued numeric matrix of treated units.

inMatrixCo

a positive-valued numeric matrix of controlled units.