Text-only version of this website Skip to content

Code for Use of Monte Carlo Studies in Structural Equation Modeling Research

This page presents example code for the chapter:

Bandalos, D. L. & Leite, W. L. (2013). Use of Monte Carlo Studies in Structural Equation Modeling Research. In G. R. Hancock & R. O. Mueller (Eds.), Structural equation modeling: A second course (2nd Ed.). Greenwich, CT: Information Age Publishing.

R Code:

1. Function to simulate data

2. Function to analyze simulated data

3. Code to run simulation using the two functions above.

MPLUS Code:

1. Code to simulate and analyze data.

2. Code to analyze previously simulated data.