Hi Eric,<br><br>Sorry, this was just a little mistake in writing in my mail; I actually use the same number of time samples for the task and the baseline <font size="3" face="Times New Roman"><span style="font-size: 12pt;">(cfg.latency = [0.05 0.4])
and the baseline (cfg.latency = [-0.4 -0.05])</span></font>!! <br><br>Best<br>Christine<br><br><br><br><div class="gmail_quote">2009/3/20 Eric Maris <span dir="ltr"><<a href="mailto:e.maris@donders.ru.nl">e.maris@donders.ru.nl</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">











<div link="blue" vlink="blue" lang="NL">

<div>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;">Hi
Christine,</span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;"> </span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;"> </span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;"> </span></font></p>

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;"><div class="im">

<div>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-GB">I have some
trouble using 'timelockstatistics' for task vs baseline comparisons (the code I'm
using is pasted below).</span></font></p>

</div>

</div><div><div class="im">

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">In the output of timelockstatistics, I get only one (!) time sample
(prob, stat, mask: 266 (channels) x 1 (time)), even if I specify the parameter
cfg.latency (e.g. [0 0.2]). However, when I plot the statistics afterwards, it
is possible to plot the whole time window I specified in cfg.latency - even
though the topography seems to be the same for each time bin...<br>
<br>
The steps I do before computing timelockstatistics are the following:<br>
1) Compute timelockanalyis separately for the task (cfg.latency = [0.05 0.4])
and the baseline (cfg.latency = [-0.4 -0.5]) separately<br>
2) Compute timelockgrandaverage for task and baseline<br>
3) Use the code below to compute timelockstatistics<br>
<br>
Can anybody help me with this issue? <br>
I would be very glad about any suggestions on what is going wrong here!!<br>
<br>
<font color="blue"><span style="color: blue;"></span></font></span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;"> </span></font></p>

</div><p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB">For
permutation statistics with actvsblT to make sense, the number of time samples
in the activation and the baseline data must be equal. This does not appear to
be the case in your configuration for timelockanalysis.</span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB"> </span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB">Good
luck,</span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB"> </span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB">Eric Maris</span></font><font color="blue" face="Bookman Old Style"><span style="font-family: "Bookman Old Style"; color: blue;" lang="EN-GB"></span></font></p>
<div><div></div><div class="h5">

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB"> </span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB"> </span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB"> </span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB"> </span></font></p>

<p><font size="3" color="blue" face="Bookman Old Style"><span style="font-size: 12pt; font-family: "Bookman Old Style"; color: blue;" lang="EN-GB"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;" lang="EN-GB"><br>
</span>Best<br>
Christine<br>
<br>
<br>
cfg = [];<br>
cfg.grad = timelockUprightTask{1}.grad;<br>
cfg.channel = {'MEG', '-MLP12', '-MRC14', '-MLT41',
 '-MRC25', '-MRP56', '-MRT21', '-ML021', '-MRO44', '-MRT47'};<br>
cfg.statistic = 'actvsblT';<br>
cfg.clusterthreshold = 'parametric';<br>
cfg.clusteralpha = 0.05;<br>
cfg.alpha = 0.05;<br>
cfg.makeclusters = 'yes';<br>
cfg.minnbchan = 3;<br>
cfg.parameter = 'individual';<br>
cfg.clusterstatistic = 'maxsum';<br>
cfg.onetwo = 'twosided';<br>
cfg.method = 'montecarlo';<br>
cfg.correctm = 'cluster';<br>
cfg.numrandomization = 1000;<br>
cfg.latency = [0 0.2];<br>
nSubjects = length(filesUprightTask);<br>
a = [1:nSubjects];<br>
b = ones(1,nSubjects);<br>
cfg.design = [a a; b (2*b)];<br>
cfg.uvar = 1;<br>
cfg.ivar = 2;<br>
timelockstat = timelockstatistics(cfg,timelockUprightTaskGA,timelockUprightBaseGA);</font></p>

</div></div></div><div><div></div><div class="h5">

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div>

<div>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div>

<div>

<div>

<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><br>
-- <br>
Christine Gruetzner, geb.Tillmann<br>
Max-Planck-Institut für Hirnforschung<br>
Abt. Neurophysiologie<br>
Deutschordenstr. 46<br>
60528 Frankfurt am Main<br>
Germany<br>
<br>
Phone: +49 (0)69/6301-83225<br>
E-Mail: <a href="mailto:tillmann@mpih-frankfurt.mpg.de" target="_blank">tillmann@mpih-frankfurt.mpg.de</a><br>
<a href="http://www.mpih-frankfurt.mpg.de/global/Np/Staff/tillmann.htm" target="_blank">http://www.mpih-frankfurt.mpg.de/global/Np/Staff/tillmann.htm</a><br>
<br>
</span></font></p>

</div>

</div>

</div></div><p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">----------------------------------</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;">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.</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a></span></font></p>


<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"><a href="http://www.ru.nl/fcdonders/fieldtrip/" target="_blank">http://www.ru.nl/fcdonders/fieldtrip/</a></span></font></p>

</div>

</div>

</div>


<p>----------------------------------</p>
<p>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.</p>
<p>  <a href="http://listserv.surfnet.nl/archives/fieldtrip.html" target="_blank">http://listserv.surfnet.nl/archives/fieldtrip.html</a></p>
<p>  <a href="http://www.ru.nl/fcdonders/fieldtrip/" target="_blank">http://www.ru.nl/fcdonders/fieldtrip/</a></p>

</blockquote></div><br><br clear="all"><br>-- <br>Christine Gruetzner, geb.Tillmann<br>Max-Planck-Institut für Hirnforschung<br>Abt. Neurophysiologie<br>Deutschordenstr. 46<br>60528 Frankfurt am Main<br>Germany<br><br>Phone: +49 (0)69/6301-83225<br>
E-Mail: <a href="mailto:tillmann@mpih-frankfurt.mpg.de">tillmann@mpih-frankfurt.mpg.de</a><br><a href="http://www.mpih-frankfurt.mpg.de/global/Np/Staff/tillmann.htm">http://www.mpih-frankfurt.mpg.de/global/Np/Staff/tillmann.htm</a><br>
<br><br>
<p>----------------------------------</p>
<p>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.</p>
<p>  http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p>  http://www.ru.nl/fcdonders/fieldtrip/</p>