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

Error in plotPDM function #15

Open
hitrp opened this issue Nov 30, 2020 · 0 comments
Open

Error in plotPDM function #15

hitrp opened this issue Nov 30, 2020 · 0 comments

Comments

@hitrp
Copy link

hitrp commented Nov 30, 2020

Dear Prof.Wager,

Thanks for the convenient MediationToolbox you provided us.

I only have one trial(resting state fMRI) per subject, as mentioned in " High-dimensional multivariate mediation with application to neuroimaging data" and "multiple brain networks mediating stimulus-pain relationships", I think PDM_toolbox rather than mediation_toolbox should be the right one to use, right?

Besides, when i use the example data in 'https://github.com/canlab/MediationToolbox/blob/master/Mediation_walkthrough/mediation_example_script_1.m' and use resampled MNI152_T1_2009c as brainmask, there is one error in matlab, after dubugging, i found it comes from the comparison of full volume and non-zero volume dimension in reparse_contiguous(), could you give me some ideas of how to fix this?

The function used are:
pdm =multivariateMediation(xxx',yyy',mm','B',20,'svd','nPDM',3,'bootPDM',1:3,'jointPDM',false,'Bsamp',100,'save2file','PDMresults.mat');
[obj,figh] = plotPDM(pdm,dat);

Much appreciated!

Best wishes,
Peng

image

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