Learn R Programming

brainGraph (version 2.2.0)

bg_to_mediate: Convert brainGraph results to "mediate" object

Description

bg_to_mediate converts the results of brainGraph_mediate into an object of class mediate. In brainGraph, it is only used for the summary.mediate method, but you can similarly use its output for the plot.mediate method.

Usage

bg_to_mediate(x, region = NULL)

Arguments

x

Object output from brainGraph_mediate

region

Character string specifying which region's results to summarize; only relevant if level='vertex' (default: NULL)

Value

An object of class mediate

See Also

mediate