Print 'all_paths' Class Object
Print the content of 'all_paths'-class object, which can be generated by all_indirect_paths()
.
## S3 method for class 'all_paths' print(x, ...)
x
: A 'all_paths'-class object....
: Optional arguments.x
is returned invisibly. Called for its side effect.
This function is used to print the paths identified in a readable format.
library(lavaan) data(data_serial_parallel) mod <- " m11 ~ x + c1 + c2 m12 ~ m11 + x + c1 + c2 m2 ~ x + c1 + c2 y ~ m12 + m2 + m11 + x + c1 + c2 " fit <- sem(mod, data_serial_parallel, fixed.x = FALSE) # All indirect paths out1 <- all_indirect_paths(fit) out1
all_indirect_paths()
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448