print.all_paths {manymome}R Documentation

Print 'all_paths' Class Object

Description

Print the content of 'all_paths'-class object, which can be generated by all_indirect_paths().

Usage

## S3 method for class 'all_paths'
print(x, ...)

Arguments

x

A 'all_paths'-class object.

...

Optional arguments.

Details

This function is used to print the paths identified in a readable format.

Value

x is returned invisibly. Called for its side effect.

Author(s)

Shu Fai Cheung https://orcid.org/0000-0002-9871-9448

See Also

all_indirect_paths()

Examples

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


[Package manymome version 0.2.1 Index]