<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear list<div class=""><br class=""></div><div class="">My name is Darias Holgado and I am working in the Mind, Brain and Behaviour Research Centre in Granada on tDCS, EEG and Sport performance. I am analysing data of a project, where we recorded EEG under three tDCS’ stimulation. </div><div class=""><br class=""></div><div class=""><div class="">I have carried out a tDCS’s study in a within-subjects fashion. I have 3 conditions (anodal, cathodal and sham) x one measure (3x1). I am performing permutation test with the montecarlo approach and the ft_statfun_dsamplesFmultivariate.</div></div><div class=""><div class="">After having specified the design and running the script, it seems that it is ok, but in the output the total number of variables appears as 2, when it is supposed it should say 3. is it that correct? The design I specified it seems correct and it is working but this data is confusing. </div><div class=""><br class=""></div><div class="">The cfg and design I use are as follows:</div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; color: rgb(37, 153, 45);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">%Within-Subject design 3 condition x 1 measure</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.design(1,1:3*Nsub)  = [ones(1,Nsub) 2*ones(1,Nsub) 3*ones(1,Nsub)];</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.design(2,1:3*Nsub)  = [1:Nsub 1:Nsub 1:Nsub];</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.ivar                = 1; </div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.uvar                = 2; </div><p style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.channel = chanlocs; </div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.method = 'montecarlo'; </div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.statistic   = 'ft_statfun_depsamplesFmultivariate'; </div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.correctm = 'cluster';</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.clusterstatistic = 'maxsum'; </div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.minnbchan = 2;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.numrandomization = 5000;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.tail = 1; </div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">% cfg.clustertail = 1;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.alpha = 0.025;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">%cfg.frequency = freqrange;</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">%cfg.avgoverfreq = 'yes';</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Courier;" class="">cfg.neighbours = neighbours;</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; min-height: 14px;" class="">Thank you for your time</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Courier; min-height: 14px;" class=""><br class=""></div></div><div class=""><br class=""></div></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="text-align: start; text-indent: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; text-align: start; text-indent: 0px;">Best regards,</div><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; text-align: start; text-indent: 0px;">---------------------------------------------------------------------------------</div><div style="text-align: start; text-indent: 0px;">Darías Holgado Nuñez<br class="">Mind, Brain and Behaviour Research Centre.<br class="">University of Granada (Spain)<br class=""><a href="https://www.researchgate.net/profile/Darias_Holgado" class="">https://www.researchgate.net/profile/Darias_Holgado</a></div></div></div></div>
</div>
<br class=""></body></html>