| speaker_bhatt | R Documentation |
Computes Bhattacharyya distance and affinity for each group, under a multivariate normal approximation.
speaker_bhatt(
data,
group_col,
category_col,
features,
min_tokens = 20,
eps = 1e-06
)
data |
Data frame. |
group_col |
Character vector of one or more grouping columns
(e.g., |
category_col |
String; category column with exactly two levels per group. |
features |
Character vector of numeric feature columns. |
min_tokens |
Minimum tokens per group. |
eps |
Small ridge constant passed to |
Data frame with columns: group, n_tokens, bhatt_dist, bhatt_affinity.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.