Skip to content

Unequal length of variables in Mediation #43

@Apurva1292

Description

@Apurva1292

Hello Tor and co-developers,

I am new to running mediation_brain and encountered an issue.
While running mediation_brain, we intend to use brain images as the mediator with X independent variable and Y dependent outcome score.
In the run at the stage of mediator search, it reads the brain images list provided as mediators and creates an array with the values of every voxel in it.
In the mediation part, inputs get set up that matches the length of all three inputs X, Y, and M. At this point, the error occurs as the unequal length of the variables X, Y and M the following:
"Error using mediation>setup_inputs (line 1223)
X, Y, and M must be equal in length".

Any suggestions on how we can resolve the issue or find out more about the details of the mediation would be much appreciated.

Thank you

Apurva

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions