Learn R Programming

modelbpp (version 0.1.6)

print.partables: Print a partables-Class Object

Description

Print the content of a partables-class object.

Usage

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

Value

x is returned invisibly. Called for its side effect.

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

See Also

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

Examples

Run this code

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)

Run the code above in your browser using DataLab