gain.functions: MFCF Gain Functions

Description Usage Arguments Value Author(s) References

Description

These functions maximize a gain criterion for adding a node to a clique (and the larger network). The flexibility of MFCF allows for any multivariate function to be used as a scoring function.

Usage

1
2
3
4
5
6
7
8
"logLik"
gfcnv_logdet(data, clique_id, cl, excl_nodes, ctreeControl)

"logLik.val"
gfcnv_logdet_val(data, clique_id, cl, excl_nodes, ctreeControl)

"rSquared.val"
gdcnv_lmfit(data, clique_id, cl, excl_nodes, ctreeControl)

Arguments

data

Matrix or data frame. Can be a dataset or a correlation matrix

clique_id

Numeric. Number corresponding to clique to add another node to

cl

List. List of cliques already assembled in the network

excl_nodes

Numeric vector. A vector of numbers corresponding to nodes not already included in the network

ctreeControl

List (length = 5). A list containing several parameters for controlling the clique tree sizes:

  • min_size Numeric. Minimum number of nodes allowed per clique. Defaults to 1

  • max_size Numeric. Maximum number of nodes allowed per clique. Defaults to 8

  • pval Numeric. p-value used to determine cut-offs for nodes to include in a clique. Defaults to .05

  • pen Numeric. Multiplies the number of edges added to penalize complex models. Similar to the penalty term in AIC

  • drop_sep Boolean. This parameter influences the MFCF only. If TRUE any separator can be used only once, as in the TMFG.

  • use_returns Boolean. Only used in rSquared.val. If set to TRUE the regression is performed on log-returns. Defaults to FALSE

Value

Returns the value with the maximum gain

Author(s)

Guido Previde Massara <gprevide@gmail.com> and Alexander Christensen <alexpaulchristensen@gmail.com>

References

Massara, G. P. & Aste, T. (2019). Learning clique forests. ArXiv.


NetworkToolbox documentation built on May 28, 2021, 5:11 p.m.