[FieldTrip] explore cluster statistics

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Fri Nov 9 15:05:33 CET 2018


Afshin,




I face two errors:



first at ft_math function:



Error using ft_math (line 151)

the requested parameter is not present in the data

As the error indicates, the requested parameter ‘avg’ is apparently not in the data. In other words, the timelock1/2 structures shouldn't have an ‘avg’ field, causing ft_math to complain. The reason for this is  that the example script pre-dates some changes to the fieldtrip code base, which caused the ‘avg’ field to disappear if ft_timelockanalysis is called with cfg.keeptrials = ‘yes’. Probably, if you use cfg.parameter = ‘trial’, rather than ‘avg’ in your call to ft_math, it’ll work.



Error in Nonparametric_statistical_testingEEGandMEG_data (line 45)

difference = ft_math(cfg, timelock1, timelock2); % line 137 of ft_datatype_timelock removes the fields



and if I comment that line out, I face another error at ft_timelcokstatistics



Error using chol

Matrix must be square.



Error in montecarlo (line 13)

R = chol(Sigma);   % Y = R^{-T}X has covariance I

For some reason, you end up in a function called ‘montecarlo’,  which is incorrect, since you should have ended up in ft_statistics_montecarlo. The cause of all this is probably that the folder that has the ‘montecarlo’ function is higher on the matlab search path than the fieldtrip folder.

Jan-Mathijs



J.M.Schoffelen, MD PhD
Senior Researcher, VIDI-fellow - PI, language in interaction
Telephone: +31-24-3614793
Physical location: room 00.028
Donders Centre for Cognitive Neuroimaging, Nijmegen, The Netherlands







Error in ft_timelockstatistics (line 185)

  [stat] = statmethod(cfg, dat, design);



Error in Nonparametric_statistical_testingEEGandMEG_data (line 63)

stat = ft_timelockstatistics(cfg, timelock1, timelock2);



Any comment?



Best regards,



Associate Prof. Afshin Samani, PhD
Sport Sciences
Dept. of Health Science and Technology
Aalborg University, Aalborg
Denmark
<image001.png>

_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20181109/4656a80e/attachment-0002.html>


More information about the fieldtrip mailing list