topic_jsd: Calculate the Jensen-Shannon Distance between groups

Description Usage Arguments Details

Description

Calculate the Jensen-Shannon Distance between groups

Usage

1
topic_jsd(x, dist, prior = 0)

Arguments

x

a possibly grouped tidy_topic_array.

dist

a categorical variable to calculate JSD between group

prior

probability smoothing/dirichlet prior. Default is 0.

Details

Calculates the Jensen-Shannon distance for a grouped variable.

If prior is 0, 0 * log(0) is assumed to be 0 (ie the limit). Assumes that of beta is set to 0 the probability 0 is the limit when p -> 0+ i.e 0.


MansMeg/tidytopics documentation built on May 8, 2019, 3:52 p.m.