get_graph {GGMncv} | R Documentation |
ggmncv
ObjectsThe 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.
get_graph(x, ...)
x |
An object of class |
... |
Currently ignored. |
P
: Weighted adjacency matrix (partial correlation network)
adj
: Adjacency matrix
Y <- na.omit(bfi[,1:5])
fit <- ggmncv(cor(Y),
n = nrow(Y),
progress = FALSE)
get_graph(fit)