modsemify | R Documentation |
lavaan
syntaxGenerate parameter table for lavaan
syntax
modsemify(syntax)
syntax |
model syntax |
data.frame
with columns lhs, op, rhs, mod
library(modsem)
m1 <- '
# Outer Model
X =~ x1 + x2 +x3
Y =~ y1 + y2 + y3
Z =~ z1 + z2 + z3
# Inner model
Y ~ X + Z + X:Z
'
modsemify(m1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.