This repository contains the code for the submitted paper:
Sofia Morelli, Roberto Faleh, Holger Brandt (2025).
RAPSEM: Identifying Latent Mediators Without Sequential Ignorability via a Rank-Preserving Structural Equation Model.
Available at arXiv:2509.23935
- rapsem: Contains the R package for estimating latent mediation effects. You can download and install it via the provided
.tar.gzfile. - simulation_study: Contains all code for the simulation studies, including data generation and plotting scripts.
To install the rapsem R package from the .tar.gz file:
install.packages("path_to/rapsem_x.y.z.tar.gz", repos = NULL, type = "source")