Multiple conditional tags in createModels

23 views
Skip to first unread message

Chaopai Lin

unread,
Jan 27, 2024, 2:50:04 AM1/27/24
to MplusAutomation

Hi Michael,

Thank you for your work on integrating Mplus with R, it's been invaluable. I'm facing a challenge with the createModels function while creating serial mediation models. I need to exclude models where a variable acts as both an independent variable and a mediator, using conditional tags like [[ivname != m1name]]. Additionally, I'm trying to specify items for analysis but struggle with the conditional logic, which seems to only support "AND" and not "OR".

Could you advise on how to implement an "OR" logic for conditions like "if var1 is an IV, mediator1, or mediator2, then include certain items"? Any guidance would be greatly appreciated.

Best.

Chaopai

Reply all
Reply to author
Forward
0 new messages