Using R Package RAMpath for Tracing SEM Path Diagrams and Conducting Complex Longitudinal Data Analysis
Zhiyong Zhang,Fumiaki Hamagami,Kevin J. Grimm,John J. McArdle
DOI: https://doi.org/10.1080/10705511.2014.935257
2014-01-01
Structural Equation Modeling
Abstract:In this article, we introduce and demonstrate the application of a newly developed R package RAMpath for tracing path diagrams and conducting structural longitudinal data analysis. RAMpath was developed to preserve the essential features of the classic DOS version of the RAMpath program (McArdle & Boker, 1990) and ease data analysis done through structural equation modeling (SEM). The applicability of RAMpath is demonstrated through a mediation model, a MIMIC model, several latent growth curve models, a univariate latent change score model, and a bivariate latent change score model. In addition to performing regular SEM analysis, RAMpath has unique features. First, it can generate path diagrams according to a given model. Second, it can display path tracing rules through path diagrams and decompose total effects into their respective direct and indirect effects as well as decompose variances and covariances into individual bridges. Furthermore, RAMpath can fit dynamic system models automatically based on latent change scores and generate vector field plots based on results obtained from a bivariate dynamic system. RAMpath is provided as an open-source R package.