Fit Latent Data

Øystein Olav Skaar


Fit Latent Data

Enjoy this brief demonstration of the fit latent data module (i.e., a simple mediation model).

Also, please see Fit Observed Data.

First we simulate some data

Next we run a standard mediation analysis using lavaan

Now for the Bayesian model

Time for some noise

Rerun the lavaan model

Run the Bayesian model with robust estimates