extract_param {lcsm} | R Documentation |
Extract labelled parameters of lavaan objects
Description
Extract labelled parameters of lavaan objects
Usage
extract_param(lavaan_object, printp = FALSE)
Arguments
lavaan_object |
lavaan object. |
printp |
If TRUE convert into easily readable p values. |
Value
This function returns a tibble with labelled parameters.
References
David Robinson and Alex Hayes (2019). broom: Convert Statistical Analysis Objects into Tidy Tibbles. R package version 0.5.2. https://CRAN.R-project.org/package=broom/
Examples
# First create a lavaan object
bi_lcsm_01 <- fit_bi_lcsm(data = data_bi_lcsm,
var_x = names(data_bi_lcsm)[2:4],
var_y = names(data_bi_lcsm)[12:14],
model_x = list(alpha_constant = TRUE,
beta = TRUE,
phi = FALSE),
model_y = list(alpha_constant = TRUE,
beta = TRUE,
phi = TRUE),
coupling = list(delta_lag_xy = TRUE,
xi_lag_yx = TRUE)
)
# Now extract parameter estimates
extract_param(bi_lcsm_01)
[Package lcsm version 0.3.2 Index]