caim: Auxiliary function for caim discretization algorithm
Description
This function is required to compute the CAIM value for CAIM iscretization algorithm.
Usage
caim(tb)
Arguments
tb
a vector of observed frequencies
Details
The Class-Attrivute Interdependence Maximization(CAIM) discretization algorithm implements in disc.Topdwon(data,method=1). The CAIM criterion measures the dependency between the class variable and the discretization variable for attribute, and is defined as :
$$CAIM=\frac{{\sum_{r=1}^n} \frac{max^2_r}{M_+r} }{n}$$
for \(r=1,2, ... , n\), \(max_r\) is the maximum value within the \(r\)th column of the quanta matrix. \(M_{+r}\) is the total number of continuous values of attribute that are within the interval(Kurgan and Cios (2004)).
References
Kurgan, L. A. and Cios, K. J. (2004). CAIM Discretization Algorithm, IEEE Transactions on knowledge and data engineering, 16, 145--153.