canlab / MediationToolbox

Single-level and multi-level mediation analyses for any kind of data, with bootstrap-based significance testing. Neuroimaging-oriented functions allow for mediation effect parametric mapping (mapping of mediation effects across the brain) and multivariate mediation.
https://canlabweb.colorado.edu/wiki/doku.php/help/mediation/m3_mediation_fmri_toolbox
83 stars 29 forks source link

mediation toolbox with DTI data - Error in statistic_image/threshold>alternate_cluster_extent_in_sig_field (line 425) stats_image_obj.sig(:, i) = new_sig; #29

Open MClaraS opened 1 year ago

MClaraS commented 1 year ago

Hello everyone,

I am using the mediation toolbox for the first time and I am working with DTI data (using the FA maps as mediators).

[I am using matlab R2019a. My X variable is a column vector with participants ages and Y is a column vector with behavioral scores, while M is a set of FA maps - for each participant - as .nii files.]

(mediation_brain(x,y,imgs,'names',names,'mask', mask, 'noverbose', 'covnames', covs)

it seems to run with no problem, but when I try to open the M-Y_effect.img, X-M_effect.img or X-M-Y_effects.img the images are blank.

Also, after running publish_mediation_report the file doesn't show any tables and I get an error under 'Path a results table, uncorrected'. I am attaching the pdf of the mediation report with the error. mediation report.pdf

Would you have any suggestion to why this is the case or how I can solve this?

Any help would be appreciated.

Best regards, Clara