Skip to content

Commit

Permalink
HOTFIX - correctly specify the cfg.alpha for the critical value compu…
Browse files Browse the repository at this point in the history
…tation (#1733)
  • Loading branch information
schoffelen committed Apr 9, 2021
1 parent cafeda5 commit 144cdd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ft_statistics_montecarlo.m
Expand Up @@ -242,6 +242,7 @@
% tmpcfg = keepfields(cfg, {'dim' 'dimord' 'clusteralpha' 'clustertail' 'ivar' 'uvar' 'cvar' 'wvar' 'contrastcoefs'});
tmpcfg.computecritval = 'yes'; % explicitly request the computation of the crtitical value
tmpcfg.computestat = 'no'; % skip the computation of the statistic
tmpcfg.alpha = cfg.clusteralpha; % the statfun uses cfg.alpha most likely
try
cfg.clustercritval = getfield(statfun(tmpcfg, dat, design), 'critval');
catch
Expand Down

0 comments on commit 144cdd7

Please sign in to comment.