View source: R/total_correlation.R
| total_correlation | R Documentation |
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).
total_correlation(table_variables, table_class)
C(table_variables, table_class)
table_variables |
A list of factors as categorical variables. |
table_class |
A factor representing the class of the case. |
Total correlation estimation for the variable set
{table_variables, table_class}.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.