View source: R/coef_lav_betaselect.R
coef.lav_betaselect | R Documentation |
Return the betas-select in a 'lav_betaselect'-class object.
## S3 method for class 'lav_betaselect'
coef(object, drop_na = FALSE, ...)
object |
The output of
|
drop_na |
Logical. Whether betas-select
with |
... |
Optional arguments. Not used. |
It just extracts and
returns the column est
from
the object: the betas-select, with
selected variables standardized.
A numeric vector: The betas-select
in the object. The names of parameters
follow the convention in lavaan
.
Shu Fai Cheung https://orcid.org/0000-0002-9871-9448
lav_betaselect()
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"))
coef(fit_beta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.