weighted_adj_mat: Extract the Weighted Adjacency Matrix

View source: R/weighted_adj_mat.R

weighted_adj_matR Documentation

Extract the Weighted Adjacency Matrix

Description

Extract the weighted adjacency matrix (posterior mean) from estimate, explore, ggm_compare_estimate, and ggm_compare_explore objects.

Usage

weighted_adj_mat(object, ...)

Arguments

object

A model estimated with BGGM. All classes are supported, assuming there is matrix to be extracted.

...

Currently ignored.

Value

The weighted adjacency matrix (partial correlation matrix with zeros).

Examples


# note: iter = 250 for demonstrative purposes
Y <- bfi[,1:5]

# estimate
fit <- estimate(Y, iter = 250,
                progress = FALSE)

# select graph
E <- select(fit)

# extract weighted adj matrix
weighted_adj_mat(E)



BGGM documentation built on Sept. 11, 2024, 5:19 p.m.