categorical variable mediation analysis

231 views
Skip to first unread message

Kevin

unread,
Aug 3, 2021, 6:25:59 AM8/3/21
to lavaan
Dear all,

I am having a bit of a hard time understanding how exactly lavaan handles ordinal variables in the mediation example https://lavaan.ugent.be/tutorial/mediation.html.

From the model output, it seems that lavaan introduces a new latent variable M and does probit regression for the M ~ X submodel.
However, the documentation is unclear how this is then linked to the Y ~ M model. I get a single coefficient. The documentation suggests that lavaan would treat M as a simple numerical variable in the Y ~ M regression, is that correct?

Thanks!

Terrence Jorgensen

unread,
Aug 16, 2021, 5:46:00 AM8/16/21
to lavaan
The documentation suggests that lavaan would treat M as a simple numerical variable in the Y ~ M regression, is that correct?

No, if M is endogenous and identified as ordered=, it will be treated as an indicator of a normal latent response variable (LRV).  Any equation in the entire system that includes M will be modeling its LRV.  The LRV is linked to the observed discrete M via the thresholds.  These might be helpful:



Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam

Guillermo Soto Arias

unread,
Jan 27, 2025, 2:48:42 AM1/27/25
to lavaan

I have a similar question. What happens if my mediator variable is a nominal variable with two values ​​without any order? Should I still use the ordered argument or should I recode my variable to dummy?

Terrence Jorgensen

unread,
Mar 3, 2025, 3:46:18 PM3/3/25
to lavaan
nominal variable with two values ​​without any order? 

For binary variables, the distinction between nominal and ordinal is only conceptual.  You can declare it as ordered, where the variable captures the presence or absence (but no intermediary amounts) of some quality.
Reply all
Reply to author
Forward
0 new messages