SEMinR: Domain-Specific Language for Building, Estimating, and Visualizing Structural Equation Models in R

16 Pages Posted: 4 Sep 2021

See all articles by Soumya Ray

Soumya Ray

National Tsing Hua University, Taiwan

Nicholas Danks

Trinity College Dublin

André Calero Valdez

RWTH Aachen University

Date Written: August 6, 2021

Abstract

SEMinR seeks to bring the latest state-of-the-art advances in SEM methods to the R ecosystem. This package also seeks to make describing and analyzing SEMs easier for practitioners.

There have been several recent advances in the various branches of SEM that are often not reflected in existing R packages. For example, the PLS-PM approach requires adjustment in how models with interaction terms are estimated. PLS-PM methods have recently incorporated predictive methods such as plsPredict. Meanwhile, CB-SEM approach can avail ten Berge factor-score extraction that obtains construct scores with the same correlation patterns as the latent factors themselves. CB-SEM researchers should also consider VIF scores in their regression models. SEMinR incorporates these and other advancements.

Estimating an SEM using CB-SEM and PLS-PM requires different packages for the two estimation methods, which often requires researchers to wholly redescribe their models in different syntax. SEMinR allows researchers to describe their model once in a common syntax, and estimate the model using different estimation methods. SEMinr includes its own implementation of PLS-PM estimation that is tested against leading commercial applications to ensure comparable results. For CB-SEM estimation, SEMinR delegates the estimation to the popular Lavaan package. Regardless of which estimation method one uses, the results are structured in a similar way for reporting and visualization.

R packages for SEM often use a custom syntax that does not correspond to any programming language; nor does the syntax not reflect the terminology of SEM with which practitioners are familiar. SEMinR offers researchers a domain-specific language for modeling SEMs that uses function names that evoke major SEM components: constructs, relationships, paths, reflective, composite, etc. As SEMinR’s syntax is built using R functions, researchers can inject their own custom functions to extend the behavior of SEMinR.

SEMinR is the first package that allows researchers applying PLS-PM to visualize their graphical models and measurement qualities. Visualization of CB-SEM models is delegated to the semplot package. Moreover, SEMinR allows researchers to visualize models either before or after estimation.

Keywords: Partial Least Squares, Structural Equation Modeling, Prediction, Explanation

Suggested Citation

Ray, Soumya and Danks, Nicholas and Calero Valdez, André, SEMinR: Domain-Specific Language for Building, Estimating, and Visualizing Structural Equation Models in R (August 6, 2021). Available at SSRN: https://ssrn.com/abstract=3900621 or http://dx.doi.org/10.2139/ssrn.3900621

Soumya Ray

National Tsing Hua University, Taiwan ( email )

No. 101, Sec. 2, Kuang Fu Rd
Hsinchu, 30013
Taiwan

HOME PAGE: http://soumyaray.com

Nicholas Danks (Contact Author)

Trinity College Dublin ( email )

College Green
Dublin
Ireland

André Calero Valdez

RWTH Aachen University ( email )

Templergraben 55
52056 Aachen, 52056
Germany

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
33
Abstract Views
278
PlumX Metrics