<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas",serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=NL style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hi Tom,<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><pre>Re: t stat vs r - as I understand it you can permute any statistic you want, it doesn't have to be a t or f. The montecarlo method for solving the multiple comparisons problem is not dependent on your choice of statistic (right guys?).<o:p></o:p></pre><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>that’s correct, Tom ;)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Best,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Jörn<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#626264;mso-fareast-language:NL'>--<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#255A9E;mso-fareast-language:NL'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#255A9E;mso-fareast-language:NL'>Jörn M. Horschig</span></b><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#626264;mso-fareast-language:NL'>, Software Engineer</span><b><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:NL'><o:p></o:p></span></b></p><p class=MsoNormal><span lang=NL style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#626264;mso-fareast-language:NL'><a href="http://www.artinis.com/"><span lang=EN-US style='color:#626264'>Artinis Medical Systems</span></a></span><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#626264;mso-fareast-language:NL'>  |  +31 481 350 980 </span><b><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#255A9E;mso-fareast-language:NL'><o:p></o:p></span></b></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> fieldtrip-bounces@science.ru.nl [mailto:fieldtrip-bounces@science.ru.nl] <b>On Behalf Of </b>Dr C A Brown<br><b>Sent:</b> Monday, December 8, 2014 9:56 AM<br><b>To:</b> FieldTrip discussion list<br><b>Subject:</b> Re: [FieldTrip] Cluster analysis on correlation statistics<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>Hi Tom<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>Great! That would be really helpful, thank you. I'm still learning fieldtrip so it be interesting to see how it works. The ft_statistics_montecarlo function implies that a custom statistic of choice can be used but I haven't looked deep enough into the function yet to get a could understanding of it.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>If anything publishable comes out of it I can acknowledge you if you wish?<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>Best wishes<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>Chris <o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>Dr Christopher Brown<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>Research Associate<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>Sent from a mobile device, please excuse my brevity.<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><div id="htc_header"><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>----- Reply message -----<br>From: "Marshall, T.R. (Tom)" <<a href="mailto:t.marshall@fcdonders.ru.nl">t.marshall@fcdonders.ru.nl</a>><br>To: "FieldTrip discussion list" <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><br>Subject: [FieldTrip] Cluster analysis on correlation statistics<br>Date: Sat, Dec 6, 2014 15:33<o:p></o:p></span></p></div></div><p class=MsoNormal><br><br><o:p></o:p></p><pre>Hi Chris,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I wrote some functions for doing this a while ago and would be happy to share them.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Re: t stat vs r - as I understand it you can permute any statistic you want, it doesn't have to be a t or f. The montecarlo method for solving the multiple comparisons problem is not dependent on your choice of statistic (right guys?).<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Best,<o:p></o:p></pre><pre>Tom<o:p></o:p></pre><pre>________________________________________<o:p></o:p></pre><pre>From: <a href="mailto:fieldtrip-bounces@science.ru.nl">fieldtrip-bounces@science.ru.nl</a> [fieldtrip-bounces@science.ru.nl] on behalf of Dr C A Brown [cb802@cam.ac.uk]<o:p></o:p></pre><pre>Sent: 06 December 2014 12:33<o:p></o:p></pre><pre>To: <a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a><o:p></o:p></pre><pre>Subject: Re: [FieldTrip]        Cluster analysis on correlation statistics<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Hello again,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Just to clarify my last email: I'm referring to correlation between either single trial data within subject, or averaged ERPs across subjects, with a behavioral variable. Not linear regression across conditions as is already implemented in the ft_statfun_depsamplesregrT function.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Many thanks<o:p></o:p></pre><pre>Chris<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Dr Christopher Brown<o:p></o:p></pre><pre>Research Associate<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Sent from a mobile device, please excuse my brevity.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>----- Reply message -----<o:p></o:p></pre><pre>From: "Christopher Brown" <<a href="mailto:cb802@cam.ac.uk">cb802@cam.ac.uk</a>><o:p></o:p></pre><pre>To: <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>><o:p></o:p></pre><pre>Subject: Cluster analysis on correlation statistics<o:p></o:p></pre><pre>Date: Sat, Dec 6, 2014 07:49<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>Dear all<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I would like to use the cluster analysis functions in Fieldtrip on correlation statistics. I note there has been some discussion about this on this list in the past but I haven't come across the necessary ft_statfun_corr function to allow this analysis. It would be great if somebody has this code and could share it with me; otherwise, I will embark on writing it myself and sharing my results with everyone for feedback. Being new to Fieldtrip I would greatly appreciate any collaborative help with this. May I check my understanding on something before getting started: To allow for multiple comparisons correction using monte carlo for example, as part of a cluster analysis, I presume the output of the function must be t values rather than correlation coefficients? Any other hints as to how to write this are most welcome.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Kind regards<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Chris<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>--<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Dr Christopher Brown<o:p></o:p></pre><pre>Research Associate | CamPain Group | Division of Anaesthesia | School of Clinical Medicine | University of Cambridge<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Box 93<o:p></o:p></pre><pre>Addenbrooke's Hospital<o:p></o:p></pre><pre>Hills Road<o:p></o:p></pre><pre>Cambridge CB2 0QQ<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>01223 256 995<o:p></o:p></pre><pre><o:p> </o:p></pre><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>fieldtrip mailing list<o:p></o:p></pre><pre><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><o:p></o:p></pre><pre><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><o:p></o:p></pre></div></div></body></html>