print.mc_out: Print a 'mc_out'-Class Object

View source: R/print_mc_out.R

print.mc_outR Documentation

Print a mc_out-Class Object

Description

Print the content of the output of do_mc() or related functions.

Usage

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

Arguments

x

The output of do_mc(), or any mc_out-class object returned by similar functions.

...

Other arguments. Not used.

Value

x is returned invisibly. Called for its side effect.

Examples


library(lavaan)
data(data_med_mod_ab1)
dat <- data_med_mod_ab1
mod <-
"
m ~ x + w + x:w + c1 + c2
y ~ m + w + m:w + x + c1 + c2
"
fit <- sem(mod, dat)
# In real research, R should be 5000 or even 10000
mc_out <- do_mc(fit, R = 100, seed = 1234)

# Print the output of do_boot()
mc_out


manymome documentation built on Oct. 4, 2024, 5:10 p.m.