Description Usage Arguments Value Examples
View source: R/information_theory.R
It calculates the entropy between two categorical variables using log2. This log2 is mentioned in most of the Claude Shannon bibliography. Input/target can be numeric or character.
1 | entropy_2(input, target)
|
input |
numeric/character vector |
target |
numeric/character vector |
Entropy measured in bits
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.