MplusAutomation icon indicating copy to clipboard operation
MplusAutomation copied to clipboard

Multiple conditional tags in createModels

Open linem7 opened this issue 2 years ago • 0 comments

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.

linem7 avatar Jan 27 '24 07:01 linem7