ESEM code generator for Mplus

Leon T. de Beer, Llewellyn Ellardus van Zyl

Research output: Non-textual formSoftwareAcademic


The purpose of the De Beer and Van Zyl (2019) ESEM tool is to aid researchers to generate the Mplus syntaxes needed to run several complex ESEM models. Estimating ESEM models within Mplus is rather complex and could become rather tedious. The tool was developed to intuitively guide researchers to generate the Mplus syntaxes needed to estimate normal ESEM-, bifactor ESEM-, Hierarchical ESEM (H-ESEM) and ESEM-within-CFA models. This tool is based on the ESEM estimation procedure discussed in Asparouhov and Muthén (2009) and demonstrated by Howard et al. (2018) for bifactor ESEM and Morin and Asparouhov (2018) for H-ESEM and ESEM-within-CFA models.

The Tool:
De Beer, L.T. & Van Zyl, L.E. (2019). ESEM code generator for Mplus. Retrieved from doi: 10.6084/m9.figshare.8320250

The Video Tutorial (the use of the Tool starts at 1:03:43):
Van Zyl, L.E. & de Beer, L.T. (2021). Exploratory Structural Equation Modelling: Practical guidelines and Video Tutorial for Mplus [YouTube Tutorial]. Retrieved from

The Paper:
Van Zyl, L.E., & Ten Klooster, P.M. (2022). Exploratory Structural Equation Modelling: Practical Guidelines and Tutorial with a Convenient Online Tool for Mplus. Frontiers in Psychiatry, 12:795672. doi:10.3389/fpsyt.2021.795672
Original languageEnglish
Media of outputOnline
Publication statusPublished - 1 Dec 2019


  • ESEM
  • Mplus
  • Exploratory Structural Equation Modelling
  • ESEM-within-CFA
  • Statistics Tutorial


Dive into the research topics of 'ESEM code generator for Mplus'. Together they form a unique fingerprint.

Cite this