» Articles » PMID: 39639914

Using SymPy (Symbolic Python) for Understanding Structural Equation Modeling

Overview
Date 2024 Dec 6
PMID 39639914
Authors
Affiliations
Soon will be listed here.
Abstract

Structural Equation Modeling (SEM) continues to grow in popularity with numerous articles, books, courses, and workshops available to help researchers become proficient with SEM quickly. However, few resources are available to help users gain a deep understanding of the analytic steps involved in SEM, with even fewer providing reproducible syntax for those learning the technique. This work builds off of the original work by Ferron and Hess (2007) to provide computer syntax, written in python, for the specification, estimation, and numerical optimization steps necessary for SEM. The goal is to provide readers with many of the numerical and analytic details of SEM that may not be regularly taught in workshops and courses. This work extends the original demonstration by Ferron and Hess to incorporate the reticular action model notation for specification as well as the estimation of variable means. All of the code listed is provided in the appendix.

References
1.
Von Oertzen T, Brick T . Efficient Hessian computation using sparse matrix derivatives in RAM notation. Behav Res Methods. 2013; 46(2):385-95. DOI: 10.3758/s13428-013-0384-4. View

2.
Gunzler D, Chen T, Wu P, Zhang H . Introduction to mediation analysis with structural equation modeling. Shanghai Arch Psychiatry. 2014; 25(6):390-4. PMC: 4054581. DOI: 10.3969/j.issn.1002-0829.2013.06.009. View

3.
Goldsmith K, MacKinnon D, Chalder T, White P, Sharpe M, Pickles A . Tutorial: The practical application of longitudinal structural equation mediation models in clinical trials. Psychol Methods. 2017; 23(2):191-207. PMC: 5975099. DOI: 10.1037/met0000154. View

4.
McArdle J, McDonald R . Some algebraic properties of the Reticular Action Model for moment structures. Br J Math Stat Psychol. 1984; 37 ( Pt 2):234-51. DOI: 10.1111/j.2044-8317.1984.tb00802.x. View