<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">Hi Ramin,<br>
      <br>
      hope you are doing fine. For the imaginary part of coherence you
      need to call ft_connectivityanalysis with cfg.output = 'imag'.<br>
      Afaik, z-scoring for the imaginary part is different from doing it
      for the plain coherence, so you should not use indepsamplesZcoh.
      You could have a look at Guido Nolte's paper on imaginary
      coherence and look it up in the methods section how he is
      computing it - similar but different from what I know how the
      z-scoring for coherence is computed. Thus, I am not sure how to
      best do cluster-based statistics on that (that means, I know how
      you could do it, but not what the best way to do it would be). Of
      course, you write an own statistics function, something like
      'indepsamplesZicoh'... but that would be tons of work.<br>
      <br>
      Good luck! I hope anyone out there has other/better ideas :)<br>
      <br>
      Best,<br>
      Jörn<br>
      <br>
      On 4/5/2013 9:49 AM, Ramin Azodi wrote:<br>
    </div>
    <blockquote
cite="mid:CA+9+xdKA9tPFRxEgSt4GtxRNvyt49H-W2Creq2yk4WyanFoKCw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div><span dir="ltr" id=":19i">Hello,<br>
                  In case that I want </span>just to calculate <span
                  dir="ltr" id=":19h">imaginary part of coherence
                  instead of coherence with 'indepsamplesZcoh', </span>what
                kind of operation should I do for that? can anybody lead
                me through the right way ?</div>
              You can find my code as following,<br>
              <br>
              cfg = [];<br>
              cfg.method = 'mtmfft';<br>
              cfg.output = 'fourier';<br>
              cfg.taper  = 'hanning';<br>
              cfg.foilim = [12 20];<br>
              freq1 = ft_freqanalysis(cfg, data1);<br>
              cfg = [];<br>
              cfg.method = 'mtmfft';<br>
              cfg.output = 'fourier';<br>
              cfg.complex = 'imag';<br>
              cfg.taper  = 'hanning';<br>
              cfg.foilim = [12 20];<br>
              freq2 = ft_freqanalysis(cfg, data2);<br>
              cfg = [];<br>
              cfg.method    = 'montecarlo';<br>
              cfg.statistic = 'indepsamplesZcoh';<br>
              cfg.parameter = 'fourierspctrm';<br>
              cfg.computecritval = 'yes';<br>
              cfg.numrandomization = 500;<br>
              cfg.design = [ones(size(freq1.fourierspctrm,1),1);<br>
              2*ones(size(freq2.fourierspctrm,1),1)]';<br>
              cfg.label     = freq.label;<br>
              stat = ft_freqstatistics(cfg, freq,freq1);<br>
              <br>
            </div>
            Thanks in advanced for your consideration.<br>
          </div>
          Best Regards,<br>
        </div>
        Ramin Azodi<br>
        <div>
          <div>
            <div>
              <div><br>
                <br>
                <br>
                <br>
                <br>
              </div>
            </div>
          </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>