Skip to content

Multiple conditional tags in createModels #198

@linem7

Description

@linem7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions