<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Dear Haiteng,<br>
      <br>
      I think in the example the design matrix is wrongly computed. If
      you compare the single and the group-level example, it is
      described exactly the same, which does not make much sense. Afaik
      it should be this instead (analogue to freq statisics on group
      level):<br>
      <br>
      <i><small>subj = numel(sourceA.trial);<br>
          design = zeros(2,2*subj);<br>
          for i = 1:subj<br>
            design(1,i) = i;<br>
          end<br>
          for i = 1:subj<br>
            design(1,subj+i) = i;<br>
          end<br>
          design(2,1:subj)        = 1;<br>
          design(2,subj+1:2*subj) = 2;<br>
        </small></i><br>
      Let me know if this makes things better (not in today, working
      from home, so better reply to this lis).<br>
      <br>
      Best,<br>
      Jörn<br>
      <br>
      On 4/19/2013 10:25 AM, Haiteng Jiang wrote:<br>
    </div>
    <blockquote
cite="mid:CAHSK_TR1WScp+Zfa-82UQfCYY=eAsZ_5T+bwTiFjekfVUL3S3A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi FTer,
        <div>   I am  doing Cluster-based permutation statistic  after
          beamforming on two condition over subjects following the
          tutorial <a moz-do-not-send="true"
            href="http://fieldtrip.fcdonders.nl/example/source_statistics">http://fieldtrip.fcdonders.nl/example/source_statistics</a>,
          but I get something funny.</div>
        <div> In my case , I would expect decreased activity in  the
          visual and posterior area.  The effect is quite strong, which
           is showed in the grand average  difference (log ratio to
          reduce inter subject variability).  However ,  from the
          statistic ,  the identified areas go to  the temporal area ,
          which doesn't make sense at all .   Please see the below and
          attached  pictures.    I understand cluster-based permutation
           test doesn't necessary pick the peak difference, but  in
          general it should find main different area.  Any comment would
          be greatly appreciated.</div>
        <div><br>
        </div>
        <div style="">Average: </div>
        <div style=""><br>
        </div>
        <div style=""><img
            src="cid:part2.04040405.08020209@donders.ru.nl" alt="Inline
            images 2" width="1167" height="829"><br>
        </div>
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style="">Statistic:</div>
        <div style=""><img
            src="cid:part3.08090809.07050706@donders.ru.nl" alt="Inline
            images 1" width="1167" height="875"><br>
        </div>
        <div>                                                           
                         Best,</div>
        <div>                                                           
                         Haiteng<br clear="all">
          <div><br>
          </div>
          -- <br>
          <div>
            <div><font face="arial, helvetica, sans-serif">Haiteng Jiang</font></div>
            <div><font face="arial, helvetica, sans-serif">PhD candidate</font></div>
            <div><font face="arial, helvetica, sans-serif">Neuronal
                Oscillations Group</font></div>
            <div><font face="arial, helvetica, sans-serif">Donders
                Institute for Brain, Cognition and Behaviour</font></div>
            <div><font face="arial, helvetica, sans-serif">Centre for
                Cognitive Neuroimaging</font></div>
            <div><font face="arial, helvetica, sans-serif">Radboud
                University Nijmegen</font></div>
            <div><span
                style="line-height:18px;background-color:rgb(255,255,255)"><font
                  face="arial, helvetica, sans-serif"><br>
                </font></span></div>
            <div><span
                style="line-height:18px;background-color:rgb(255,255,255)"><font
                  face="arial, helvetica, sans-serif">Visiting address</font></span></div>
            <div>
              <div
                style="text-align:left;background-color:rgb(255,255,255)">
                <div>
                  <span style="line-height:18px"><font face="arial,
                      helvetica, sans-serif">Room 2.32</font></span></div>
                <div><span style="line-height:18px"><font face="arial,
                      helvetica, sans-serif">Donders Centre for
                      Cognitive Neuroimaging</font></span></div>
                <div><span style="line-height:18px"><font face="arial,
                      helvetica, sans-serif">Kapittelweg 29</font></span></div>
                <div><span style="line-height:18px"><font face="arial,
                      helvetica, sans-serif">6525 EN  Nijmegen</font></span></div>
                <div><span style="line-height:18px"><font face="arial,
                      helvetica, sans-serif">the Netherlands</font></span></div>
                <div><span style="line-height:18px"><font face="arial,
                      helvetica, sans-serif"><br>
                    </font></span></div>
              </div>
            </div>
            <div><font face="arial, helvetica, sans-serif"> Tel.: +31
                (0)243668291</font></div>
          </div>
          <div><font face="arial, helvetica, sans-serif"> Web:  <a
                moz-do-not-send="true"
                href="https://sites.google.com/site/haitengjiang/"
                target="_blank">https://sites.google.com/site/haitengjiang/</a></font></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour 
Centre for Cognitive Neuroimaging
Radboud University Nijmegen 
Neuronal Oscillations Group
FieldTrip Development Team

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel:    +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
  </body>
</html>