<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st2="isiresearchsoft-com/cwyw" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="isiresearchsoft-com/cwyw" name="citation"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st2\:*{behavior:url(#default#ieooui) }st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Bookman Old Style";
        panose-1:2 5 6 4 5 5 5 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.E-mailStijl18
        {mso-style-type:personal-reply;
        font-family:"Bookman Old Style";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=NL link=blue vlink=blue>

<div class=Section1>

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

<p class=MsoNormal><font size=3 color=blue face="Bookman Old Style"><span
style='font-size:12.0pt;font-family:"Bookman Old Style";color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face="Bookman Old Style"><span
style='font-size:12.0pt;font-family:"Bookman Old Style";color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face="Bookman Old Style"><span
style='font-size:12.0pt;font-family:"Bookman Old Style";color:blue'><o:p> </o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

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

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>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'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal><font size=3 color=blue face="Bookman Old Style"><span
style='font-size:12.0pt;font-family:"Bookman Old Style";color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face="Bookman Old Style"><span
lang=EN-GB style='font-size:12.0pt;font-family:"Bookman Old Style";color:blue'>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.<o:p></o:p></span></font></p>

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

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

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

<p class=MsoNormal><st1:PersonName ProductID="Eric Maris" w:st="on"><font
 size=3 color=blue face="Bookman Old Style"><span lang=EN-GB style='font-size:
 12.0pt;font-family:"Bookman Old Style";color:blue'>Eric Maris</span></font></st1:PersonName><font
color=blue face="Bookman Old Style"><span lang=EN-GB style='font-family:"Bookman Old Style";
color:blue'><o:p></o:p></span></font></p>

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

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

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

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

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

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-GB
style='font-size:12.0pt'><br>
</span>Best<br>
Christine<br>
<br>
<br>
cfg = [];<br>
cfg.grad = timelockUprightTask<st2:citation w:st="on">{1}</st2:citation>.grad;<br>
cfg.channel = <st2:citation w:st="on">{'MEG', '-MLP12', '-MRC14', '-MLT41',
 '-MRC25', '-MRP56', '-MRT21', '-ML021', '-MRO44', '-MRT47'}</st2:citation>;<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);<o:p></o:p></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><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>
<o:p></o:p></span></font></p>

</div>

</div>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>----------------------------------<o:p></o:p></span></font></p>

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

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>http://listserv.surfnet.nl/archives/fieldtrip.html<o:p></o:p></span></font></p>

<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>http://www.ru.nl/fcdonders/fieldtrip/<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>
<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>