modsemify: Generate parameter table for 'lavaan' syntax

View source: R/parser.R

modsemifyR Documentation

Generate parameter table for lavaan syntax

Description

Generate parameter table for lavaan syntax

Usage

modsemify(syntax, parentheses.as.string = FALSE)

Arguments

syntax

model syntax

parentheses.as.string

Should parentheses be read parsed as literal strings?

Value

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

Examples

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)

modsem documentation built on March 28, 2026, 9:06 a.m.