Learn R Programming

simstandard (version 0.6.3)

fixed2free: Remove fixed parameters from a lavaan model

Description

Remove fixed parameters from a lavaan model

Usage

fixed2free(m)

Arguments

m

Structural model represented by lavaan syntax

Value

character string representing lavaan model

Examples

Run this code
# NOT RUN {
library(simstandard)
# lavaan model with fixed parameters
m = "
Latent_1 =~ 0.9 * Ob_11 + 0.8 * Ob_12 + 0.7 * Ob_13
Latent_2 =~ 0.9 * Ob_21 + 0.6 * Ob_22 + 0.4 * Ob_23
"
# Same model, but with fixed parameters removed.
m_free <- fixed2free(m)
cat(m_free)
# }

Run the code above in your browser using DataLab