Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unequal length of variables in Mediation #43

Open
Apurva1292 opened this issue Feb 16, 2022 · 0 comments
Open

Unequal length of variables in Mediation #43

Apurva1292 opened this issue Feb 16, 2022 · 0 comments

Comments

@Apurva1292
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant