Description Usage Arguments Details Value
Calculate entropy of categorical data using tally of observations in each category.
1 |
x |
ordered; vector of categorical data. |
freq |
numeric; count of observations in each group. |
Calculates the entropy of categorical data using a tally of observations in each category, using the following formula:
H=- ∑ [f_{k} log2 (f_{k} / ∑ f_{j})] / sum f_{j},
where f_{k} is the frequency in category indexed by k.
numeric; scalar value of entropy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.