jeromyanglim / learning_r

assorted notes to self while learning R
1 stars 0 forks source link

How to plot a lavaan SEM path model? #25

Open jeromyanglim opened 12 years ago

jeromyanglim commented 12 years ago

qgraph seems well suited, but it seems to be under active development. My first example did not work, because I don't think indirect effects are supported.

http://sachaepskamp.com/qgraph

qgraph.lavaan() function is designed for the purpose.

It required a little bit of fiddling with options to produce something legible.

qgraph.lavaan(lavaan_fit, layout='circle', include=3, vsize.man=5)

Other ideas