>> [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);