Fit Observed Data4 years ago
First we simulate some data | Then we create some observed data based on the latent variables | Next we run a standard observed mediation analysis using lavaan | Run the Bayesian model on observed data | Let's add some noise to the observed data | Run the lavaan model on biased data | Finally, run the Bayesian model with robust estimates on biased data
bfw 0.4.2Øystein Olav Skaarfit_observed_data.Rmd