Learn R Programming

foodingraph (version 0.1.0)

mic_adj_matrix: Computes a MIC adjacency matrix

Description

For a given dataset, computes the adjacency matrix of maximal information coefficient (MIC) of each pairwise association. NOTE : another approach could have been to give the whole data frame to the minerva package func cstats(), but it seemed slower in my tests.

Usage

mic_adj_matrix(obs_data)

Arguments

obs_data

(data.frame or matrix) : a dataset which rows are observations and columns the variables.

Value

the adjacency matrix of MIC values for each pairwise association.

References

Reshef et al. (2011) <doi:10.1126/science.1205438>

Examples

Run this code
# NOT RUN {
mic_adj_matrix(iris[,-5])
# }

Run the code above in your browser using DataLab