entropy_2.Rd
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.
entropy_2(input, target)
input | numeric/character vector |
---|---|
target | numeric/character vector |
Entropy measured in bits
if (FALSE) { # Measuring entropy between input and target variable entropy_2(input=data_golf$outlook, target=data_golf$play_golf) }