[FieldTrip] could not determine dimord of "design"

Heizi Fusen fusenheizi at gmail.com
Mon Jan 15 11:39:34 CET 2024


Hi,

I encountered while using ft_freqstatistics with the 'dimord' parameter set
to 'rpt_chan_freq_time'. And I receive the following warning:

------------
Warning: could not determine dimord of "design" in:

time: [-1.5000 -1.4900 -1.4800 -1.4700 -1.4600 -1.4500 -1.4400 -1.4300
-1.4200 -1.4100 -1.4000 -1.3900 -1.3800 -1.3700 -1.3600 -1.3500 -1.3400
-1.3300 -1.3200 -1.3100 -1.3000 -1.2900 -1.2800 -1.2700 -1.2600 -1.2500
-1.2400 … ] (1×331 double)
freq: [0.9155 1.1444 1.3733 1.6022 1.8311 2.0599 2.2888 2.5177 2.7466
2.9755 3.2043 3.4332 3.6621 3.8910 4.1199 4.3488 4.5776 4.8065 5.0354
5.2643 5.4932 5.7220 5.9509 6.1798 6.4087 6.6376 6.8665 7.0953 7.3242
7.5531 7.7820 … ] (1×434 double)
dimord: 'rpt_chan_freq_time'
label: {'perm'}
design: [1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2
2 2 … ] (1×167 double)
powspctrm: [167×1×434×331 double]
--------------


This is my cfg code:

---------------
cfg = [];
    cfg.method = 'montecarlo';
    cfg.statistic = 'indepsamplesT';
    cfg.numrandomization = 1000;
    cfg.design = perm_data.design;
    cfg.ivar = 1;
    % cfg.feedback = 'no';
    cfg.correctm          = 'cluster';
    cfg.neighbours        = [];
    cfg.clusteralpha      = 0.05;
    cfg.clustertail       = 0;
    cfg.clusterstatistic  = 'maxsum';
    cfg.tail              = 0;
    cfg.correcttail       = 'prob';
    cfg.alpha             = 0.05;

stat = ft_freqstatistics(cfg, perm_data);
---------------

As far as my understanding goes, the 'dimord' for 'design' should indeed be
'rpt', and the first dimension of 'powspctrm' is equal to the length of
'design'. However, I am uncertain about the specific issue causing this
warning. Could you kindly provide guidance or insight into where the
problem might lie?

Thanks in advance!
--
Jay Lin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20240115/2dad3929/attachment.htm>


More information about the fieldtrip mailing list