This function implements Extended Chi2 discretization algorithm.
extendChi2(data, alp = 0.5)
data matrix to discretized dataset
significance level;
list of cut-points for each variable
discretized data matrix
In the extended Chi2 algorithm, inconsistency checking(Xi()
) after each step of discretization (
Su, C. T. and Hsu, J. H. (2005). An Extended Chi2 Algorithm for Discretization of Real Value Attributes, IEEE transactions on knowledge and data engineering, 17, 437--441.
# NOT RUN {
data(iris)
ext=extendChi2(iris,0.5)
ext$cutp
ext$Disc.data
# }
Run the code above in your browser using DataLab