print.all_paths | R Documentation |
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. |
This function is used to print the paths identified in a readable format.
x
is returned invisibly. Called for its side effect.
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
all_indirect_paths()
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.