-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Greetings,
First and foremost, thank you for this code. I am trying to use the CPM with my data (124 subjects), using the following basic command:
[y_predict, performance]= cpm_main(curdata, behvofi, 'pthresh',0.01,'kfolds',10)
I get no errors when using a p-threshold of 0.05, but as soon as I use 0.01 or smaller, I run into the following error.
# Running over 10 Folds.
Performing fold no. 1 2 Error using statrobustfit (line 21)
Not enough points to perform robust estimation.
Error in robustfit (line 114)
[varargout{:}] = statrobustfit(X,y,wfun,tune,wasnan,doconst,priorw,dowarn);
Error in cpm_train (line 22)
mdl=robustfit(summary_feature,y');
Error in cpm_cv (line 38)
[~, ~, pmask, mdl] = cpm_train(x_train, y_train,pthresh);
Error in cpm_main (line 53)
[y_predict]=cpm_cv(x,y,pthresh,kfolds);
I am just curious as to what is the nature of this error? It is suggesting that there are not enough significant edges (at the p-threshold) to apply the CPM?
Any insight would be greatly appreciated.
Thank you,
Paul
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels