Learn R Programming

modsem (version 1.0.7)

modsemify: Generate parameter table for lavaan syntax

Description

Generate parameter table for lavaan syntax

Usage

modsemify(syntax)

Value

data.frame with columns lhs, op, rhs, mod

Arguments

syntax

model syntax

Examples

Run this code
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)

Run the code above in your browser using DataLab