print.partables {modelbpp}R Documentation

Print a partables-Class Object

Description

Print the content of a partables-class object.

Usage

## S3 method for class 'partables'
print(x, max_tables = 10, ...)

Arguments

x

A partables-class object.

max_tables

The maximum number of models to be printed. Default is 10.

...

Optional arguments. Ignored.

Details

The print method for the output of gen_models(), get_add(), and get_drop().

Value

x is returned invisibly. Called for its side effect.

Author(s)

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

See Also

gen_models(), get_add(), and get_drop().

Examples


library(lavaan)
dat <- dat_path_model
mod <-
"
x3 ~ a*x1 + b*x2
x4 ~ a*x1
ab := a*b
"
fit <- sem(mod, dat_path_model, fixed.x = TRUE)
mod_to_add <- get_add(fit)
mod_to_add
print(mod_to_add, max_tables = 1)
mod_to_drop <- get_drop(fit)
mod_to_drop
print(mod_to_drop, max_tables = 1)


[Package modelbpp version 0.1.3 Index]