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

Output Files #7

Open
mgogniat opened this issue Aug 21, 2018 · 3 comments
Open

Output Files #7

mgogniat opened this issue Aug 21, 2018 · 3 comments
Assignees
Labels

Comments

@mgogniat
Copy link

Hello,

I'm wondering if you could provide me some information on where the output files from each step in the process of completing a voxel-wise mediation can be found (i.e., under what directories?).

Thanks,

Marissa

@mgogniat
Copy link
Author

mgogniat commented Sep 4, 2018

Just following up on this, thanks!

@WeiCheng88
Copy link

It would be helpful if the tools could provide the result files of each step, such as the files of correlation between any two variables (X-Y, X-M, and M-Y), rather than the files of mediation result. Thanks in advance.

@trislett trislett self-assigned this Sep 8, 2018
@trislett
Copy link
Owner

trislett commented Sep 8, 2018

Hi @mgogniat ,

The indirect effect (SobelZ) from the voxel-wise mediation are in the output directory. The intermediate steps are calculated internally. If you need each step, I recommend calculating them individually using step1-voxel-regress. For instance, if the image is the 'M' variable:

IVAR.csv -> Single column of independent (left) variable (such as diagnosis)
DVAR.csv -> Single column of dependent (right) variable (such as cognitive performance score)
IVARandDVAR.csv -> Two columns of containing IVAR and DVAR

M ~ X + b (Step 1):
tfce_mediation step1-voxel-regress -i IVAR.csv covars.csv

-> {neg}tstats_con1* image is the effect of path A

Y ~ X + M + b (Step 2):
tfce_mediation step1-voxel-regress -i IVARandDVAR.csv covars.csv

-> {neg}tstats_con2* image is the effect of path B ***
*** Note: the M (image) variable and Y (dependent) variable are switched here. That's ok since the tstat is equivalent either way.

Indirect effect:
tfce_mediation step1-voxel-mediation -i IVAR.csv DVAR.csv -c covars -m M

If steps 1, 2, and the indirect effect are all significant, then the mediation effect is valid.

@WeiCheng88
The TFCE transformed T-stats can be calculated as above. The correlations/betas would not be informative because of TFCE.

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

No branches or pull requests

3 participants