Description Usage Arguments Value Functions Examples
Calculate the entropy of a vector
1 2 3 4 5 |
v |
categorical vector |
pseudo_count |
number of pseudo counts to add on, to stabilize empty categories |
na.action |
how to handle NA values |
p |
proportion threshold |
the sample entropy
np
: The number of categories exceeding p
proportion of the total
modal_category
: The modal category of v. Ties are broken by lexicographic order of the factor levels.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.