Skip to content

Error: Not enough points to perform robust estimation. #7

@pauldhami

Description

@pauldhami

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions