print.model_set {modelbpp} | R Documentation |
Print a model_set
-Class Object
Description
Print the content of
a model_set
-class object.
Usage
## S3 method for class 'model_set'
print(
x,
bic_digits = 3,
bpp_digits = 3,
sort_models = TRUE,
max_models = 20,
bpp_target = NULL,
target_name = "original",
more_fit_measures = NULL,
fit_measures_digits = 3,
short_names = FALSE,
...
)
Arguments
x |
A |
bic_digits |
The number of decimal places to be displayed for BIC. Default is 3. |
bpp_digits |
The number of decimal places to be displayed for BIC posterior probability and prior probabilities. Default is 3. |
sort_models |
Whether the models
will be sorted by BIC posterior
probability.
Default is |
max_models |
The maximum number of models to be printed. Default is 20. |
bpp_target |
The desired
BIC probability. Used to compute
and print
the minimum prior probability
of the target model required to
achieve |
target_name |
The name of the
target model as appeared in the
model list. Default is |
more_fit_measures |
Character
vector. To be passed to
|
fit_measures_digits |
The number of decimal places to be displayed for additional fit measures, if requested. Default is 3. |
short_names |
If |
... |
Optional arguments. Ignored. |
Details
It is the print method of the
output of model_set()
.
Value
x
is returned invisibly.
Called for its side effect.
Author(s)
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
See Also
A model_set
-class object
is generated by model_set()
.
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)
out <- model_set(fit)
out