problems with "Single-level example"

54 views
Skip to first unread message

Juan

unread,
Sep 23, 2016, 11:55:12 PM9/23/16
to WagerlabTools
Hi, List experts,

I am not sure what reason why I can not run the example meditation below. Any good pointers?

Thanks so much,
Juan

>> [paths, stats] = mediation(X, Y, M, 'plots', 'verbose', 'boot', 'bootsamples', 10000)
Mediation analysis

Observations:  20, Replications:   1
Predictor (X): X, Outcome (Y): Y: Mediator (M): M

Covariates: No

Single-level analysis.
Options:
Plots: Yes
Bootstrap: Yes
Robust: No
Logistic(Y): No
Bootstrap or sign perm samples: 10000
Undefined function 'nanremove' for input arguments of type 'double'.

Error in mediation (line 260)
        [nanvec, x, y, m, mediation_covariates] = nanremove(x, y, m, mediation_covariates);

Wani (Choong-Wan) Woo

unread,
Sep 24, 2016, 2:03:53 AM9/24/16
to Juan, WagerlabTools
Hi Juan, 

Do you have CanlabCore tools in your path? https://github.com/canlab/CanlabCore

To use mediation analysis, you will need CanlabCore tools. 

Thanks,
Wani

--
You received this message because you are subscribed to the Google Groups "WagerlabTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wagerlabtools+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Choong-Wan (Wani) Woo, PhD
Web | Code | Google Scholar | Lab
Postdoctoral fellow/Research associate
Cognitive and Affective Neuroscience Lab
University of Colorado Boulder
Reply all
Reply to author
Forward
0 new messages