print.all_paths function

Print 'all_paths' Class Object

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, ...)

Arguments

  • x: A 'all_paths'-class object.
  • ...: Optional arguments.

Returns

x is returned invisibly. Called for its side effect.

Details

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

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

See Also

all_indirect_paths()

Author(s)

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

  • Maintainer: Shu Fai Cheung
  • License: GPL (>= 3)
  • Last published: 2025-01-25