freqgrandaverage-no averaging performed

Saskia Haegens saskia.haegens at DONDERS.RU.NL
Mon Dec 1 15:53:09 CET 2008


If you want to calculate the average over subjects, use
cfg.keepindividual = 'no';
If you want to keep the individual data (e.g. for doing statistics) use
cfg.keepindividual = 'yes';

Best,
Saskia

> -----Original Message-----
> From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On
> Behalf Of Hsu, Shen-Mou
> Sent: 01 December 2008 11:29
> To: FIELDTRIP at NIC.SURFNET.NL
> Subject: [FIELDTRIP] freqgrandaverage-no averaging performed
>
> Dear users,
>
> The following message was returned when I executed the freqgrandaverage:
> "not computing grand average, but keeping individual power for 15 subjects
> Warning: discarding electrode information because it cannot be averaged".
>
> I was wondering if someone may shed some light on this issue.
>
> Big thanks in advance.
>
> Shen-Mou Hsu
>
> MY SCRIPT:
>
> j = 1;
>
> for sub = [1 2 3 6 7 8 9 10 12 13 14 16 17 18 19]
>     load (['Sub',num2str(sub),'_ERSP_N_fieldtrip_',num2str(i)]);
>
>     ERSPall(j) = TFRwave;
>     j= j+1;
> end
>
>
>
> cfg = [];
> cfg.keepindividual = 'yes';
>
> ERSP_N_LV = freqgrandaverage(cfg, ERSPall(1), ERSPall(2),ERSPall(3),...
>     ERSPall(4), ERSPall(5), ERSPall(6),ERSPall(7),ERSPall(8),...
>     ERSPall(9),ERSPall(10),ERSPall(11),ERSPall(12),ERSPall(13),...
>     ERSPall(14),ERSPall(15));
>
>
> save('ERSP_N_LV','ERSP_N_LV');
>
> ----------------------------------
> 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/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/fcdonders/fieldtrip.



More information about the fieldtrip mailing list