Simulation-based path analysis for qualitative mediators‎: ‎A continuous proxy approach

Document Type : Original Scientific Paper

Authors

1 Departent of Statistics‎, ‎Payame Noor University‎, ‎Tehran‎, ‎Iran

2 Department of Engineering, University of Ardakan, Ardakan, Iran

10.22034/jsmta.2026.24305.1211

Abstract

Conventional path analysis relies on ordinary least squares assumptions, requiring continuous variables. When mediators are qualitative, researchers typically resort to logistic regression, creating a scale incompatibility problem in which coefficients cannot be directly multiplied to estimate indirect effects. This study proposes a Categorical-to-Continuous Signal Transformation technique to address this limitation. Unlike standard dummy coding, we introduce a simulation-based algorithm that generates a continuous proxy variable for the qualitative mediator. By extracting the probabilistic centroid of each category using the group mean and standard error of the dependent variable, we simulate a distribution that retains the structural signal while satisfying ordinary least squares normality assumptions. The method was validated using both primary and synthetic datasets. Results demonstrate that the simulated proxy variables successfully recover the directional pathways and maintain statistical significance consistent with classical analysis of variance. The approach effectively captures the latent influence of categories without the bias of individual-level noise. The proposed simulation method offers a robust alternative for mediation analysis involving qualitative variables. By bridging the gap between categorical data and linear modeling, it enables the direct calculation of indirect effects within a unified ordinary least squares framework, eliminating the need for complex non-linear approximations.

Keywords

Main Subjects


Aldrich, J.H. and Nelson, F.D. (1984). Linear Probability, Logit, and Probit Models. Sage Publications.
Asparouhov, T. and Muthén, B. (2010). Multiple-group factor analysis alignment. Structural Equation Modeling: A Multidisciplinary Journal, 17(4):567–592.
Ayoku, S., Rochani, H., Samawi, H. and Yin, J. (2023). Mediation analysis in categorical variables under non-ignorable missing data mechanisms. Journal of Statistical Theory and Practice, 17(4):51.
Beauducel, A. and Herzberg, P.Y. (2006). On the performance of maximum likelihood versus means and variance adjusted weighted least squares estimation in CFA. Structural Equation Modeling, 13(2):186–203.
Bollen, K.A. and Pearl, J. (2013). Eight myths about causality and structural equation models. In: J.M. Poterba (Ed.), Removing Obstacles to Economic Growth (pp. 301–328). University of Chicago Press.
Goodman, L.A. (1973). Causal analysis of data from panel studies and other kinds of surveys. American Journal of Sociology, 78(5):1135–1191.
Heise, D.R. (1975). Sociological Methodology. San Francisco, Washington, London: Jossey-Bass Inc.
Imai, K., Keele, L. and Tingley, D. (2010). A general approach to causal mediation analysis. Psychological Methods, 15(4):309–334.
Israel, A.Z. (1987). Path analysis for mixed qualitative and quantitative variables. Quality & Quantity, 21(1):91–102.
Karlson, K.B., Holm, A. and Breen, R. (2012). Comparing regression coefficients between same-sample nested models using logit and probit: A new method. Sociological Methodology, 42(1):286–313.
Little, T.D. (2013). Longitudinal Structural Equation Modeling. Guilford Press.
Loh, W.Y., Xu, Y. and Zhou, X. (2024). Machine learning approaches for causal mediation analysis. Journal of Machine Learning Research, 25(15):1–48.
Long, J.S. (1997). Regression models for categorical and limited dependent variables. Advanced Quantitative Techniques in the Social Sciences, 7:219.
Morris, T.P., White, I.R. and Crowther, M.J. (2019). Using simulation studies to evaluate statistical methods. Statistics in Medicine, 38(11):2074–2102.
Muthén, B. and Asparouhov, T. (2015). Causal effects in mediation modeling: An introduction with applications to latent variables. Structural Equation Modeling, 22(1):12–23.
Newsom, J.T. (2018). Longitudinal Structural Equation Modeling: A Comprehensive Introduction. Routledge.
R Core Team (2026). R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.R-project.org.
Rhemtulla, M., Brosseau-Liard, P.É. and Savalei, V. (2012). When can categorical variables be treated as continuous? A comparison of robust continuous and categorical SEM estimation methods under suboptimal conditions. Psychological Methods, 17(3):354–373.
Shi, D., Shi, D. and Fairchild, A.J. (2023). Variable Selection for Mediators under a Bayesian Mediation Model. Structural Equation Modeling: A Multidisciplinary Journal, 30(6):887–900.
Tingley, D., Yamamoto, T., Hirose, K., Keele, L. and Imai, K. (2014). Mediation: R package for causal mediation analysis. Journal of Statistical Software, 59(5):1–38.
Winship, C. and Mare, R.D. (1983). Structural equations and path analysis for discrete data. American Journal of Sociology, 89(1):54–110.
Wright, S. (1921). Correlation and causation. Journal of Agricultural Research, 20(7):557–585.