Learn R Programming

GGMncv (version 2.1.1)

get_graph: Extract Graph from ggmncv Objects

Description

The fitted model from ggmncv contains a lot of information, most of which is not immediately useful for most use cases. This function extracts the weighted adjacency (partial correlation network) and adjacency matrices.

Usage

get_graph(x, ...)

Arguments

x

An object of class ggmncv.

...

Currently ignored.

Value

  • P: Weighted adjacency matrix (partial correlation network)

  • adj: Adjacency matrix

Examples

Run this code
# NOT RUN {
Y <- na.omit(bfi[,1:5])

fit <- ggmncv(cor(Y),
              n = nrow(Y),
              progress = FALSE)

get_graph(fit)
# }

Run the code above in your browser using DataLab