[FieldTrip] fft_timelockgrandaverage
Stephen Politzer-Ahles
politzerahless at gmail.com
Thu Sep 22 15:48:59 CEST 2011
Leopold,
The way I dealt with this was by running ft_timelockgrandaverage() twice,
once with keepindividual='yes' and once with keepindividual='no', and I
saved the structures under different names (i.e.,
'condition1_grandindividuals' and 'condition1_grandonly'). I used the former
one for cluster statistics, and the latter one (which has the .avg field)
for plotting.
Alternatively, for each grand average structure with individuals you could
just create an .avg field by running the following:
GA.avg = squeeze( mean(GA.individual,1) );
This should average across individuals.
Best,
Steve Politzer-Ahles
> Message: 2
> Date: Thu, 22 Sep 2011 14:49:14 +0200
> From: Zizlsperger Leopold <zizlsperger at gmail.com>
> To: fieldtrip at donders.ru.nl
> Subject: [FieldTrip] ft_timelockgrandaverage
> Message-ID: <058344EB-FCDD-42FB-8A60-E70A339F35F2 at gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> Dear Fieldtrippers,
>
> in a within-subjects design I use ft_timelockgrandaverage with
> cfg.keepindividual = 'yes' to average timelocked EEG data (10 subjects) of
> the form:
>
> avg: [29x5000 double]
> var: [29x5000 double]
> time: [1x5000 double]
> dof: [29x5000 double]
> label: {29x1 cell}
> trial: [172x29x5000 double]
> dimord: 'rpt_chan_time'
> trialinfo: [172x28 double]
> cfg: [1x1 struct]
>
> I stick closely to the FieldTrip tutorial for cluster permutation
> statistics. I use the newest version of fieldtrip. After the grandaverage
> there is no more 'avg' in the structure, so I can not go on in the tutorial
> e.g. with:
> GA_XvsY = GA_X;
> GA_XvsY.avg = GA_X.avg - GA_Y.avg;
>
> New data is of structure:
>
> label: {29x1 cell}
> time: [1x5000 double]
> individual: [10x29x5000 double]
> dimord: 'subj_chan_time'
> cfg: [1x1 struct]
>
> Do I get the tutorial wrong or is it my data ?
> Thanks in advance
> Best
> Leopold
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110922/ec469be4/attachment-0001.html>
More information about the fieldtrip
mailing list