help > Problem with spm_estimate PPI
Mar 27, 2018  09:03 AM | Konstantinos Bromis
Problem with spm_estimate PPI
Hi,

When I run gPPI analysis I get the error below:
Error using load
'stats_right_hippocampus_session1_cond_PPI_regressors.mat' is not found in the current folder or on the MATLAB path.

However, the above error comes when I run additionally the sentence below:
SPM = spm_estimate_PPI(P.subject,fullfile(directories.rdir,directories.sdir,'SPM.mat'),P.Region,P.method,P.analysis,P.CompContrasts,0,[],0,0)

When I turn this to a comment and run the script again I get an error of estimation failure Warning: Missing conditions!!! Invalid Contrast.

However, at this moment the 'stats_right_hippocampus_session1_cond_PPI_regressors.mat' has been created. So, if I run the script as I did at first (by using the SPM=spm_estimate_PPI(P.subject,fullfile(directories.rdir,directories.sdir,'SPM.mat'),P.Region,P.method,P.analysis,P.CompContrasts,0,[],0,0) everything goes well.

Hovever, I have to do this manually everytime for each subject and its time consuming.

Is there any way it could be fixed?

Thank you.

Konstantinos

Threaded View

TitleAuthorDate
Problem with spm_estimate PPI
Konstantinos Bromis Mar 27, 2018
Donald McLaren Mar 28, 2018
Konstantinos Bromis Mar 28, 2018
Donald McLaren Mar 28, 2018