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

problems running mediation.m #22

Closed charujing closed 2 years ago

charujing commented 2 years ago

Dear professors and users, I am trying to plot the mediation results using [paths, stats2] =mediation(x(:,1),x(:,j),x(:,i), 'plots', 'boottop'). However, it echos errors about the "create_figure" was not found. It could report results when remove the option "plots". Could anyone help me fix this? Thanks. rujing

torwager commented 2 years ago

Hi Rujing,

This means that you need the “CANlab Core Tools” repository on your path. create_figure is there.

Best, Tor

On Sep 28, 2021, at 7:12 AM, charujing @.***> wrote:

Dear professors and users, I am trying to plot the mediation results using [paths, stats2] =mediation(x(:,1),x(:,j),x(:,i), 'plots', 'boottop'). However, it echos errors about the "create_figure" was not found. It could report results when remove the option "plots". Could anyone help me fix this? Thanks. rujing

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/canlab/MediationToolbox/issues/22, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPY7LEFIRCXZFWXFWSF5SDUEGPIZANCNFSM5E5EYM7A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

charujing commented 2 years ago

Dear Tor It's working. Thanks very much for your helpful and fast reply. All the best. rujing