canlab/MediationToolbox

Problems with bootstrapping

cmorawe opened this issue · 2 comments

Hi everyone,
I try to run the mediation analysis with bootstrapping using the example scripts and get the following error message:

Error using normpdf (line 3)
Not enough input arguments.

Error in Bneeded (line 47)
g = normpdf(q);

Error in mediation>get_boot_samples_needed (line 1410)
[B95, Be, alphaaccept] = Bneeded(max(.005, minp), targetu);

Error in mediation/add_boot_samples_needed (line 911)
[Be, alphaaccept] = get_boot_samples_needed(stats.p, whpvals_for_boot, targetu,
bootsamples, verbose);

Error in mediation (line 371)
add_boot_samples_needed();

Error in mediation_search (line 143)
[paths, stat] = mediation(X, Y, M(:,region), varargin{:}, 'persistent',
extra_args{:}, 'pvals_for_boot', pvals_for_boot, 'arorder', arorder);

Error in mediation_brain/process_slice (line 314)
slice_results = mediation_search('M', X, Y, M(:,whvox), varargin{:});

Error in mediation_brain (line 276)
process_slice();

Error in mediation_testscript1 (line 64)
results = mediation_brain(x,y,imgs,'names',names,'mask', mask_name,'boot','pvals',5,
'bootsamples', 1000);

Could anyone help me on this? Any help is very much appreciated.

Thanks a lot in advance.
Best regards,
Carmen