<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Casper,<div><br></div><div>The approach I would take depends on your question.</div><div><br></div><div>If you want to test for coherence differences within a subject, your unit of observation is a trial, so the permutation test shuffles the trials between the experimental condition. In this instance you can use statfun_indepsamplesZcoh (with fourier-data in the input (i.e. cfg.output = 'fourier' when calling ft_freqanalysis).</div><div><br></div><div>If you want to test across subjects, your unit of observation is a subject, so there you can compute the coherence per subject and condition and then do the statistical test by shuffling the conditions. This has for example been done in the following paper: J Neuroscience <span class="Apple-style-span" style="color: rgb(51, 51, 0); font-family: Arial, Verdana, Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, sans-serif; line-height: 9px; "><span class="slug-pub-date" itemprop="datePublished" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-style: none; font-weight: bold; font-style: inherit; font-family: inherit; line-height: inherit; text-align: inherit; vertical-align: baseline; ">2011, </span></span><span class="Apple-style-span" style="color: rgb(51, 51, 0); font-family: Arial, Verdana, Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, sans-serif; line-height: 9px; "><span class="slug-vol" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-style: none; font-weight: inherit; font-style: inherit; font-family: inherit; line-height: inherit; text-align: inherit; vertical-align: baseline; ">31</span></span><span class="Apple-style-span" style="color: rgb(51, 51, 0); font-family: Arial, Verdana, Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, sans-serif; line-height: 9px; "><span class="slug-issue" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-style: none; font-weight: inherit; font-style: inherit; font-family: inherit; line-height: inherit; text-align: inherit; vertical-align: baseline; ">(18):</span></span><span class="Apple-style-span" style="color: rgb(51, 51, 0); font-family: Arial, Verdana, Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, sans-serif; line-height: 9px; "><span class="slug-pages" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-style: none; font-weight: bold; font-style: inherit; font-family: inherit; line-height: inherit; text-align: inherit; vertical-align: baseline; "> 6750-6758;</span></span><span class="Apple-style-span" style="color: rgb(51, 51, 0); font-family: Arial, Verdana, Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, sans-serif; line-height: 9px; "> doi: </span><span class="Apple-style-span" style="color: rgb(51, 51, 0); font-family: Arial, Verdana, Helvetica, 'Lucida Grande', 'Lucida Sans Unicode', Tahoma, sans-serif; line-height: 9px; "><span class="slug-doi" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-style: none; font-weight: inherit; font-style: inherit; font-family: inherit; line-height: inherit; text-align: inherit; vertical-align: baseline; white-space: normal; word-wrap: break-word; ">10.1523/​JNEUROSCI.4882-10.2011</span></span></div><div><br></div><div><br></div><div>Best</div><div><br></div><div>Jan-Mathijs</div><div><br><div><div>On May 29, 2012, at 9:44 AM, Casper van Heck wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear Fieldtrip users,<div><br></div><div>I'm currently working on coherency between EEG and EMG, so far without any significant problems. However, I'd like to get statistical significancy (in the hope that's possible) tested on my coherency-data.</div>


<div>In the Fieldtrip reference there's a mention of something resembling statistics in combination with coherency (in the help of the 'STATISTICS_MONTECARLO' function), but I've not found how to call this function.</div>


<div><br></div><div>My question is: is there a standard method to perform statistical analysis on coherency data?</div><div><br></div><div>Sincerely,</div><div><br></div><div>Casper van Heck (Intern)</div><div>Clinical Neurophysiology, UMC St. Radboud, Nijmegen</div>


_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jan-Mathijs Schoffelen, MD PhD </div><div><br></div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><br></div><div>Max Planck Institute for Psycholinguistics,</div><div>Nijmegen, The Netherlands</div><div><br></div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></div></span></div></span></div></span></span>
</div>
<br></div></body></html>