maxNMI | R Documentation |
Computes the MaxNMI between the two variables whatever their types, by discretizing using Best Equal-Frequency-based discretization (BeEF) if necessary.
maxNMI(x, y, includeNA = T, maxNbBins = 100, showProgress = F)
x |
a vector of numeric or factor. |
y |
a vector of numeric or factor. |
includeNA |
a boolean. TRUE to include NA value as a factor level. |
maxNbBins |
an integer corresponding to the number of bins limitation (for computation time limitation), maxNbBins=100 by default. |
showProgress |
a boolean to decide whether to show the progress bar. |
a double between 0 and 1 corresponding to the MaxNMI.
# calculate a correlation dataframe
data(iris)
maxNMI(iris$Sepal.Length,iris$Species)
maxNMI(iris$Sepal.Length,iris$Sepal.Width)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.