Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with running example script: clpos_extent #19

Open
kc-aberg opened this issue May 28, 2021 · 0 comments
Open

Problem with running example script: clpos_extent #19

kc-aberg opened this issue May 28, 2021 · 0 comments

Comments

@kc-aberg
Copy link

Halo,
thanks a lot for sharing your nice toolbox.
I am trying to run the example script, and all is well until i try running the scripts:
mediation_brain_results
mediation_brain_results_all_script

For example, when i run the latter, all starts well, and then it throws an error which looks as follows (there are more lines above, but i skipped them to highlight the part where it throws an error):

%%%
...
Saving clusters with extracted data in:
intersect_a_and_b_clusters_005_k3

MEDIATION: A, B, A*B CONJUNCTION



MEDIATION: A, B, A*B CONJUNCTION


Error:File: mediation_brain_results.m Line: 295 Column: 35
Identifier 'clpos_extent' is not a function or a shared variable. To share 'clpos_extent' with nested
function, initialize it in the current scope. For more information, see Sharing Variables Between Parent and
Nested Functions.

Error in mediation_brain_results_all_script (line 238)
[clpos, clneg, clpos_data, clneg_data, clpp2, clnn2] = mediation_brain_results ...
%%%

I tried running the prior mediation analysis using the fast version, as well as the bootstrap version, but they all end up giving the same error. However, using the 'publish_mediation_report' works well.

Im running Matlab 2020a, with the newest versions of the mediation toolbox and the canlab core.

Thanks for any help, and have a good day weekend ahead! :)

Kris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant