View source: R/print_std_selected_lavaan.R
print.lav_betaselect | R Documentation |
Print method for a
'lav_betaselect' object, which
is the output of
lav_betaselect()
.
## S3 method for class 'lav_betaselect'
print(
x,
...,
nd = 3,
output = c("lavaan.printer", "table"),
standardized_only = TRUE,
show_Bs.by = FALSE,
by_group = TRUE,
na_str = " ",
sig_stars = TRUE,
ci_sig = TRUE
)
x |
A |
... |
Optional arguments to be
passed to |
nd |
The number of digits after the decimal place. Default is 3. |
output |
String. How the results
are printed. Default is |
standardized_only |
Logical.
If |
show_Bs.by |
Logical. If |
by_group |
If |
na_str |
The string to be used
for cells with |
sig_stars |
If |
ci_sig |
If |
The default format of the printout,
"lavaan.printer"
,
is similar to that of the summary()
of a lavaan
object.
Users can also select whether
only the standardized solution is
printed or whether
the standardized solution is appended
to the right of the printout.
If output
is set to "table"' the format is that of [lavaan::parameterEstimates()] with
output = "data.frame"',
which is compact but not easy to
read.
x
is returned invisibly. Called for its side effect.
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
lav_betaselect()
. This
function is adapted from
semhelpinghands::print.std_solution_boot()
.
library(lavaan)
mod <-
"
med ~ iv + mod + iv:mod
dv ~ med + iv
"
fit <- sem(mod,
data_test_medmod,
fixed.x = TRUE)
summary(fit)
fit_beta <- lav_betaselect(fit,
to_standardize = c("iv", "dv"))
fit_beta
print(fit_beta)
print(fit_beta, show_Bs.by = TRUE)
print(fit_beta, output = "table")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.