Psych (Oct 2021)

Tutorial on the Use of the regsem Package in R

  • Xiaobei Li,
  • Ross Jacobucci,
  • Brooke A. Ammerman

DOI
https://doi.org/10.3390/psych3040038
Journal volume & issue
Vol. 3, no. 4
pp. 579 – 592

Abstract

Read online

Sparse estimation through regularization is gaining popularity in psychological research. Such techniques penalize the complexity of the model and could perform variable/path selection in an automatic way, and thus are particularly useful in models that have small parameter-to-sample-size ratios. This paper gives a detailed tutorial of the R package regsem, which implements regularization for structural equation models. Example R code is also provided to highlight the key arguments of implementing regularized structural equation models in this package. The tutorial ends by discussing remedies of some known drawbacks of a popular type of regularization, computational methods supported by the package that can improve the selection result, and some other practical issues such as dealing with missing data and categorical variables.

Keywords