ecmerkle / blavaan

An R package for Bayesian structural equation modeling
https://ecmerkle.github.io/blavaan
86 stars 23 forks source link

SemPaths for blavaan #3

Closed DominiqueMakowski closed 6 years ago

DominiqueMakowski commented 6 years ago

Hey,

First, thanks for your package. Do you have any idea how to convert a blavaan model into something that could be plotted with the SemPlot package. I assume it would just need to somehow convert the blavaan object into a lavaan-like object?

Thanks a lot!!

ecmerkle commented 6 years ago

a blavaan object is basically a lavaan object with a few extra things added. So, if fit is a blavaan object, you might be able to do this:

class(fit) <- "lavaan"

and then call the semPlot stuff.

Ed

seonghobae commented 6 years ago

I add a line to do this in an automated manner. However, I do not know this commit will accept in the master branch.

Seongho