<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=us-ascii">
<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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:"Courier New";
        mso-fareast-language:DE;}
span.c1
        {mso-style-name:c1;}
span.n
        {mso-style-name:n;}
span.o
        {mso-style-name:o;}
span.p
        {mso-style-name:p;}
span.s1
        {mso-style-name:s1;}
span.mi
        {mso-style-name:mi;}
span.mf
        {mso-style-name:mf;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB">Dear community,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I am currently working on statistically testing the correlation between EEG data (dependent variable) and quantitative data (independent variable).
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I'm using the ft_statfun_correlationT function to correlate and test the quantitative independent variable (e.g. reaction time), which is one value per subject, with the subject's averaged ERP data (31channelx500timepoints)
 (~100 subjects). I used this configuration from the tutorial and it worked well:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><i><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#60A0B0;mso-fareast-language:DE">% compute statistics with correlationT</span></i><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">cfg
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE"> [];<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">cfg</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">.</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">statistic       
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#4070A0;mso-fareast-language:DE">'ft_statfun_correlationT'</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">cfg</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">.</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">method          
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#4070A0;mso-fareast-language:DE">'montecarlo'</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">cfg</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">.</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">numrandomization
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#40A070;mso-fareast-language:DE">1000</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">n1
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#40A070;mso-fareast-language:DE">99</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">;   
<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">design(</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#40A070;mso-fareast-language:DE">1</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">,</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#40A070;mso-fareast-language:DE">1</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">:n1)      
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE"> qualitative_variable; % e.g. [0.25,
 0.22, …]<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">cfg</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">.</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">design          
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE"> design;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">cfg</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">.</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">ivar            
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#40A070;mso-fareast-language:DE">1</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">;<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:#F0F0F0"><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE">stat
</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#666666;mso-fareast-language:DE">=</span><span lang="EN-GB" style="font-size:10.0pt;font-family:Consolas;color:#212529;mso-fareast-language:DE"> ft_freqstatistics(cfg, data_brain{:});<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I saw that the t-values are calculated by using this:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">tstat = rho*(sqrt(nrepl-2))./sqrt((1-rho.^2))<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I'm afraid I don't know much about statistics. But wouldn't it be appropriate to correct for the multiple comparison problem by using a cluster-based approach?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">So I tried to add this to my configuration:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">cfg.alpha = 0.025; <br>
cfg.correcttail = 'alpha'; <br>
cfg.correctm = 'cluster'; <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">cfg.clustertail = 0;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">cfg.clusteralpha = 0.05;<br>
cfg.clusterstatistic = 'maxsum'; <br>
cfg.neighbours = neighbours;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I get the error: <br>
Error using ft_statistics_montecarlo could not determine the parametric critical value for clustering<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Error in ft_timelockstatistics (line 185)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">[stat, cfg] = statmethod(cfg, dat, design);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Is there already a correction for MCP and am I thinking wrongly by using a cluster based approach?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">How is the cfg.numrandomization implemented in this statistic? I may have missed something, but it didn't look like random permutation was being used at all.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Any help would be highly appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Thank you very much and all the best,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Pia<o:p></o:p></span></p>
</div>
</body>
</html>