[FieldTrip] could not determine dimord of "design"

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Mon Jan 15 13:30:50 CET 2024


Hi Jay Lin,

A warning is not an error, so may I ask why you are worried?

The cause of the warning is probably the underlying fact that you have created a design field in your data object. Typically, this is not done. In FieldTrip, the design is part of the cfg, and not of the data object.

Best wishes,
Jan-Mathijs




> On 15 Jan 2024, at 11:39, Heizi Fusen via fieldtrip <fieldtrip at science.ru.nl> wrote:
>
> 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
> _______________________________________________
> fieldtrip mailing list
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C975f10da2eb247569c0008dc15c5ceeb%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638409186525141922%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JJ5TX1HuQMK%2FFRLg%2BpdX6teghKKR8Z9KJ8nAPiGTlkY%3D&reserved=0
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C975f10da2eb247569c0008dc15c5ceeb%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638409186525141922%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=4ZZptWP0Jrv06TCfVO97rIYP9Kry0diHByTraaCD7E4%3D&reserved=0




More information about the fieldtrip mailing list