Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions snpm_combo_pp.m
Original file line number Diff line number Diff line change
Expand Up @@ -217,17 +217,17 @@ function snpm_combo_pp(CWD, job)
%-Statistic image is t with df degrees of freedom
pU_ST_Ut = 1-spm_Tcdf(ST_Ut,df);
if alpha==1 % Not filtering on significance
if ~( primaryThresh>=ST_Ut || (primaryThresh>0 && primaryThresh<=pU_ST_Ut_filt))
if ~( primaryThresh>=ST_Ut || (primaryThresh>0 && primaryThresh<=pU_ST_Ut))
error('SnPM:InvalidPrimaryThresh', ['Primary threshold must be >=' num2str(ST_Ut) ...
' and >0 and <=' num2str(pU_ST_Ut_filt) ]);
' and >0 and <=' num2str(pU_ST_Ut) ]);
end
else
pU_C_MaxT = 1-spm_Tcdf(C_MaxT,df);
if ~((primaryThresh>=ST_Ut && primaryThresh<C_MaxT) || ...
(primaryThresh>pU_C_MaxT && primaryThresh<=pU_ST_Ut_filt))
(primaryThresh>pU_C_MaxT && primaryThresh<=pU_ST_Ut))
error('SnPM:InvalidPrimaryThresh', ['Primary threshold must be >=' num2str(ST_Ut) ...
' and <' num2str(C_MaxT) ' or >' num2str(pU_C_MaxT) ...
' and <= ' num2str(pU_ST_Ut_filt)]);
' and <= ' num2str(pU_ST_Ut)]);
end
clear pU_C_MaxT
end
Expand Down