joint_shannon_entropy: Estimation of the Joint Shannon entropy for two categorical...

Description Usage Arguments Value See Also Examples

Description

The joint Shannon entropy provides an estimation of the measure of uncertainty between two random variables (see https://en.wikipedia.org/wiki/Joint_entropy).

Usage

1
2
3

Arguments

x

A factor as the represented categorical variable.

y

A factor as the represented categorical variable.

Value

Joint Shannon entropy estimation for variables x and y.

See Also

shannon_entropy for the entropy for a single variable and multivar_joint_shannon_entropy for the entropy associated with more than two random variables.

Examples

1
2
3
4
5
6
7
joint_shannon_entropy(factor(c(0,0,1,1)), factor(c(0,1,0,1)))
joint_shannon_entropy(factor(c('a','b','c')), factor(c('c','b','a')))
## Not run: 
joint_shannon_entropy(1)
joint_shannon_entropy(c('a','b'), c('d','e'))

## End(Not run)

eliasmacielr/msu documentation built on May 21, 2019, 3:03 a.m.