We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c64ddcf commit 8f4f2bcCopy full SHA for 8f4f2bc
1 file changed
CanlabCore/Statistics_tools/holm_sidak.m
@@ -34,7 +34,7 @@
34
35
pthr = 1 - (1-alpha)^(1/length(sortedP)); % max P-value for sig results. Anything below this is significant.
36
37
-while sortedP(end) < 1 - (1-alpha)^(1/length(sortedP))
+while ~isempty(sortedP) && sortedP(end) < 1 - (1-alpha)^(1/length(sortedP))
38
39
sig(argsort(end)) = true;
40
sortedP(end) = [];
0 commit comments