Non parametric test on coherence

Eric Maris e.maris at DONDERS.RU.NL
Wed Apr 28 09:17:25 CEST 2010


Dear Matteo,





The statfun indepsamplesZcoh can only be used in a between-trials
experiment. You could cut out your baseline and activation segments
separately and then compare them in a non-paired fashion.





Best,



Eric















From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Matteo Demuru
Sent: dinsdag 27 april 2010 16:21
To: FIELDTRIP at NIC.SURFNET.NL
Subject: [FIELDTRIP] Non parametric test on coherence



Dear all,



I have a problem using freqstatistics to calculate significance for
coherence.



Specifically I have a subject and I am performing a within-trials experiment
using 'indepsamplesZcoh' as statistic.



I calculate the TFR of my data with the cfg.output='powandcsd' and
cfg.keeptrials='yes' parameters. Then I call freqstatistics to compare my
different experimental conditions (baseline vs activation).



The function crashes with this output:



??? Reference to non-existent field 'label'.



Error in ==> statfun_indepsamplesZcoh at 76

  nchan = length(cfg.label);



I have tried to add this field to the cfg struct assigning the cell that
contains the interested channels. However this time I have another error:



??? Error using ==> reshape

To RESHAPE the number of elements must not change.



Error in ==> clusterstat at 178

      posclusobs = findcluster(reshape(postailobs,
[cfg.dim,1]),channeighbstructmat,cfg.minnbchan);





Any suggestions?



Thanks in advance



Matteo Demuru



----------------------------------

The aim of this list is to facilitate the discussion between users of the
FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and
EEG analysis.

http://listserv.surfnet.nl/archives/fieldtrip.html

http://www.ru.nl/fcdonders/fieldtrip/


----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20100428/ba5a63fb/attachment-0001.html>


More information about the fieldtrip mailing list