cacc | R Documentation |
This function is requied to compute the cacc value for CACC discretization algorithm.
cacc(tb)
tb |
a vector of observed frequencies |
The Class-Attribute Contingency Coefficient(CACC) discretization algorithm implements in disc.Topdown(data,method=2)
.
The cacc value is defined as
cacc = √{\frac{y}{y+M}}
for
y = χ^2/log(n)
M is the total number of samples, n is a number of discretized intervals. This value calculates in contingency table between class variable and discrete interval, row matrix representing the class variable and each column of discrete interval.
val |
numeric of cacc value |
HyunJi Kim polaris7867@gmail.com
Tsai, C. J., Lee, C. I. and Yang, W. P. (2008). A discretization algorithm based on Class-Attribute Contingency Coefficient, Information Sciences, 178, 714–731.
disc.Topdown
,
topdown
,
insert
,
findBest
and
chiSq
.
#----Calculating cacc value (Tsai, Lee, and Yang (2008)) a=c(3,0,3,0,6,0,0,3,0) m=matrix(a,ncol=3,byrow=TRUE) cacc(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.