View source: R/BeEFdiscretization_numfact.R
BeEFdiscretization.numfact | R Documentation |
Discretize a quantitative variable by optimizing the obtained the Normalized Mutual Information with a target qualitative variable
BeEFdiscretization.numfact(
continuousY,
factorX,
includeNA = T,
showProgress = F
)
continuousY |
a vector of numeric. |
factorX |
a vector of factor. |
includeNA |
a boolean. TRUE to include NA value as a factor level. |
showProgress |
a boolean to decide whether to show the progress bar. |
a factor.
# calculate a correlation dataframe
data(iris)
discreteSepalLength=BeEFdiscretization.numfact(continuousY=iris$Sepal.Length,factorX=iris$Species)
summary(discreteSepalLength)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.