powered by
Computes the conditional entropy \(H(Y \mid X)\) for two binary vectors `y` (outcome) and `x` (predictor).
ce(y, x)
A numeric scalar giving \(H(Y \mid X)\).
A binary outcome vector (0/1 or logical). Must be the same length as `x`.
A binary predictor vector (0/1 or logical). Must be the same length as `y`.
ce(misimdata$y,misimdata$x1)
Run the code above in your browser using DataLab