Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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{{∑_{r=1}^n} \frac{max^2_r}{M_+r} }{n}

for r=1,2, ... , n, max_r is the maximum value within the rth 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)).

Author(s)

References

Kurgan, L. A. and Cios, K. J. (2004). CAIM Discretization Algorithm, IEEE Transactions on knowledge and data engineering, 16, 145–153.

See Also

Examples

#----Calculating caim value
a=c(3,0,3,0,6,0,0,3,0)
m=matrix(a,ncol=3,byrow=TRUE)
caim(m)

discretization

Data preprocessing, discretization for classification.

v1.0-1
GPL
Authors
HyunJi Kim
Initial release
2010-12-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.