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

can not found function nanremove() #16

Open Hailu-UCAS opened 3 years ago

Hailu-UCAS commented 3 years ago

when i am trying to run the example code, error occurred that 'Undefined function or variable 'nanremove'. Error in mediation (line 270) [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);'

torwager commented 3 years ago

This means you are missing a folder containing the function nanremove.m on your Matlab path. This is in CanlabCore/Misc_utilities/nanremove.m.

"Add with subfolders" to add all relevant folders to the path.

Best wishes, Tor

On Dec 22, 2020, at 4:31 AM, Hailu-UCAS notifications@github.com wrote:

when i am trying to run the example code, error occurred that 'Undefined function or variable 'nanremove'. Error in mediation (line 270) [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);'

— 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/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPY7LGUNFEOBKMYDI2IZEDSWBRQ3ANCNFSM4VFMBQAQ.

torwager commented 3 years ago

You also need the Canlab Core toolbox.

Best wishes, Tor

On Dec 22, 2020, at 4:31 AM, Hailu-UCAS notifications@github.com wrote:

when i am trying to run the example code, error occurred that 'Undefined function or variable 'nanremove'. Error in mediation (line 270) [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);'

— 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/16, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPY7LGUNFEOBKMYDI2IZEDSWBRQ3ANCNFSM4VFMBQAQ.

Hailu-UCAS commented 2 years ago

Thanks very much for your email. Please forgive me for my late reply.

best wishes, Hailu

Tor Wager @.***> 于2020年12月23日周三 09:47写道:

You also need the Canlab Core toolbox.

Best wishes, Tor

On Dec 22, 2020, at 4:31 AM, Hailu-UCAS @.***> wrote:

when i am trying to run the example code, error occurred that 'Undefined function or variable 'nanremove'. Error in mediation (line 270) [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);'

— 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/16>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABPY7LGUNFEOBKMYDI2IZEDSWBRQ3ANCNFSM4VFMBQAQ .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/canlab/MediationToolbox/issues/16#issuecomment-749874242, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASHOJVI5ZCNOA6MCMYP6U7TSWFD3PANCNFSM4VFMBQAQ .