Learn R Programming

psycho (version 0.4.91)

get_graph.lavaan: Get graph data from lavaan or blavaan objects.

Description

Get graph data from lavaan or blavaan objects.

Usage

# S3 method for lavaan
get_graph(fit, links = c("Regression", "Correlation",
  "Loading"), standardize = FALSE, threshold_Coef = NULL,
  threshold_p = NULL, threshold_MPE = NULL, digits = 2,
  CI = "default", labels_CI = TRUE, ...)

Arguments

fit

lavaan object.

links

Which links to include? A list including at least one of "Regression", "Loading" or "Correlation".

standardize

Use standardized coefs.

threshold_Coef

Omit all links with a Coefs below this value.

threshold_p

Omit all links with a p value above this value.

threshold_MPE

In case of a blavaan model, omit all links with a MPE value below this value.

digits

Edges' labels rounding.

CI

CI level.

labels_CI

Add the CI in the edge label.

...

Arguments passed to or from other methods.

Value

A list containing nodes and edges data to be used by `tidygraph::tbl_graph()`.