Learn R Programming

NetworkToolbox (version 0.0.1.0)

TMFG: Triangulated Maximally Filtered Graph

Description

Applies the Triangulated Maximally Filtered Graph (TMFG) filtering method

Usage

TMFG(data, binary = FALSE, weighted = TRUE)

Arguments

data

Can be a dataset or a correlation matrix

binary

Is dataset dichotomous? Defaults to FALSE. Set TRUE if dataset is dichotomous (tetrachoric correlations are computed)

weighted

Should network be weighted? Defaults to TRUE. Set FALSE to produce an unweighted (binary) network

Value

A sparse association matrix

References

Massara, G. P., Di Matteo, T., & Aste, T. (2016). Network filtering for big data: Triangulated maximally filtered graph. Journal of Complex Networks, 5(2), 161-178.

Examples

Run this code
# NOT RUN {
weighted_TMFGnetwork<-TMFG(data)

weighted_binary_TMFGnetwork<-TMFG(data,binary=TRUE)

unweighted_TMFGnetwork<-TMFG(data,weighted=FALSE)

unweighted_binary_TMFGnetwork<-TMFG(data,binary=TRUE,weighted=FALSE)
# }

Run the code above in your browser using DataLab