Search code examples
rr-lavaan

Strutctural Equation Modelling (Path Analysis) How to Automatically Specify Model Syntax


Anyone know if there is an easy way to write out the path models? Like in AMOS with the graphical interface and the model syntax is done behind the scenes. I'd like to do this for a model but I am using lavaan in R and have to write my model syntax but I don't want to make any mistakes - any easy way to draw the boxes and arrows and see what the syntax looks like afterwards?


Solution

  • With lavaan I believe you have to specify the full model syntactically, although there are ways to plot the path diagram after you have manually specified the model: https://statistics.ohlsen-web.de/sem-path-diagram/

    If you're looking for a free GUI for specifying SEM models you can try something like Onyx: http://onyx.brandmaier.de/