total_correlation: Estimation of total correlation for a set of categorical...

Description Usage Arguments Value Examples

View source: R/total_correlation.R

Description

Total Correlation is a generalization of information gain (IG) to measure the dependency of a set of categorical random variables (see https://en.wikipedia.org/wiki/Total_correlation).

Usage

1
2
3
total_correlation(table_variables, table_class)

C(table_variables, table_class)

Arguments

table_variables

A list of factors as categorical variables.

table_class

A factor representing the class of the case.

Value

Total correlation estimation for the variable set table.variables, table.class.

Examples

1
2
3
4
5
6
7
8
total_correlation(list(factor(c(0,1)), factor(c(1,0))), factor(c(0,0)))
total_correlation(list(factor(c('a','b')), factor(c('a','b'))),
    factor(c('a','b')))
## Not run: 
total_correlation(list(factor(c(0,1)), factor(c(1,0))), c(0,0))
total_correlation(c(factor(c(0,1)), factor(c(1,0))), c(0,0))

## End(Not run)

msu documentation built on Sept. 30, 2017, 5:05 p.m.