[FieldTrip] [EXTERNAL] Re: New issue with ft_statistics_montecarlo

Matthew Wood matthew.wood at utsa.edu
Fri May 28 21:19:28 CEST 2021


Jan-Mathijs,

Thank you for your help.

My cfg.clusterthreshold was set to the default "parametric". I changed it to "nonparametric_common" and now ft_freqstatistics runs without any errors.

Thank you!
Matthew
________________________________
From: fieldtrip <fieldtrip-bounces at science.ru.nl> on behalf of Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip at science.ru.nl>
Sent: Friday, May 28, 2021 1:54 PM
To: FieldTrip discussion list <fieldtrip at science.ru.nl>
Cc: Schoffelen, J.M. (Jan Mathijs) <jan.schoffelen at donders.ru.nl>
Subject: [EXTERNAL] Re: [FieldTrip] New issue with ft_statistics_montecarlo

  **EXTERNAL EMAIL**
  This email originated outside of The University of Texas at San Antonio.
  Please exercise caution when clicking on links or opening attachments.



Hi Matthew,

The error tells you that it is impossible to determine a parametric critical value for clustering.

You should either:

-specify a cfg.statistic that points to an ft_statfun_something that internally contains some code that does the computation of the critical value. This typically pertains to a statistic for which known parametric distributions exist, e.g. a T-statistic, or an F-statistic.

-explicitly set a cfg.clustercritval to be an upper and lower numeric threshold for clustering.

-use a different specification of cfg.clusterthreshold, e.g. ’nonparametric_common’.

Best wishes,
Jan-Mathijs



On 28 May 2021, at 19:45, Matthew Wood via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

Hello,

I have had a script for my statistics that uses ft_statistics_montecarlo for the method in ft_freqstatistics. I downloaded the latest version of FieldTrip recently and now my scripts do not work. I get the following errors:

Error using ft_statistics_montecarlo (line 250)
could not determine the parametric critical value for clustering

Error in ft_freqstatistics (line 194)
 [stat, cfg] = statmethod(cfg, dat, design);

I'm not sure what could be driving this issue, especially since I have made no changes to the script. The only thing that changed was downloading the lastest version of Fieldtrip. Is anyone else experiencing this? Or does anyone have advice into how it works?

I've looked up the error message and one user recommended testing that running with cfg.method = 'analytic' works. I've done this and my script runs fine. The structure it outputs gives me appropriate values (no NaNs).

I'd be happy to give more context if needed.

Thank you,
Matthew
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7Cmatthew.wood%40utsa.edu%7C07c555ce059f4ed7655508d9220a6415%7C3a228dfbc64744cb88357b20617fc906%7C0%7C1%7C637578250302457467%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9n1QQM2SLcSYs%2FufyDLMZgJK210caRIzycyU6DIc%2BOI%3D&reserved=0>
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!qZXip18fjkOlhyC8N8yyVeuaGRZPp1nMtGmksN0vSADy__tyUsGQD-en76I_KWpv8qnl71mK$<https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202__%3B!!HJOPV4FYYWzcc1jazlU!qZXip18fjkOlhyC8N8yyVeuaGRZPp1nMtGmksN0vSADy__tyUsGQD-en76I_KWpv8qnl71mK%24&data=04%7C01%7Cmatthew.wood%40utsa.edu%7C07c555ce059f4ed7655508d9220a6415%7C3a228dfbc64744cb88357b20617fc906%7C0%7C1%7C637578250302467456%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=IvZBroo1WXkRjCEyZNbA2ouBIgWMuAi1qXXyj3bOfoQ%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210528/e6b6470e/attachment-0001.htm>


More information about the fieldtrip mailing list