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
78 stars 28 forks source link

covariate and k-extent determination + 'clpos_extent' error #20

Open Tara-FD opened 3 years ago

Tara-FD commented 3 years ago

I have three questions about the CanLab toolbox:

  1. Is there a way to determine a k-extent (to choose specific regions with k voxels as significant) for the toolbox?

  2. How can I enter my covariates in the toolbox?

  3. when I run the mediation_example_script_1.m (and also mediation_example_script_2.m) script, I get the following error:

Error:File: mediation_brain_results.m Line: 295 Column: 35 Identifier 'clpos_extent' is not a function or a shared variable. To share 'clpos_extent' with nested function, initialize it in the current scope. For more information, see Sharing Variables Between Parent and Nested Functions.

Error in mediation_brain_results_all_script (line 238) [clpos, clneg, clpos_data, clneg_data, clpp2, clnn2] = mediation_brain_results ...

Error in mediation_example_script_1 (line 80) mediation_brain_results_all_script;

Would you please guide me how to solve this error?