<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Courier New" size="2"><span style="font-size:11pt;">
<div>Dear experts,</div>
<div> </div>
<div>I’d be grateful if someone could explain to me why there is an inversion in the statistics for the dependant sample montecarlo option - depending on the tail chosen</div>
<div> </div>
<div>I’m running the code below- a 0 or -1 tail seems to result in the lowest stat.stat value having the most significant p. A tail of ‘1’ flips this relationship (and is more in line with my result if I run a stats anova1 option<font color="#1F497D">)</font>.
I’ve also extracted all the electrode results and placed them in another software (SPSS) and these results reflect the anova1 / montecarlo tail of ‘1’. See dropbox link below. </div>
<div> </div>
<div>Happy with suggested readings, but I really can’t place why this may be the case<font color="#1F497D">,</font> or the best option to choose.</div>
<div> </div>
<div>Thank you. Jac</div>
<div> </div>
<div> </div>
<div><font face="Times New Roman" size="3"><span style="font-size:12pt;"><a href="https://www.dropbox.com/s/liq79s2ppzqpht2/m_carlo_comp.jpg?dl=0"><font face="Courier New" size="2" color="#0563C1"><span style="font-size:11pt;"><u>https://www.dropbox.com/s/liq79s2ppzqpht2/m_carlo_comp.jpg?dl=0</u></span></font></a></span></font></div>
<div><font face="Times New Roman" size="3"><span style="font-size:12pt;"> </span></font></div>
<div>cfg = [];</div>
<div>cfg.channel = {<font color="#A020F0">'all'</font>};</div>
<div>cfg.latency = time;</div>
<div>cfg.frequency = frq;</div>
<div>cfg.method = <font color="#A020F0">'montecarlo'</font> ; <font color="forestgreen">%%%%'stats' %</font></div>
<div>cfg.statistic = <font color="#A020F0">'depsamplesFmultivariate'</font> <font color="forestgreen">%%%%%'anova1';</font></div>
<div>cfg.correctm = <font color="#A020F0">'no'</font>; </div>
<div><font color="forestgreen">% cfg.clusteralpha = 0.05;</font></div>
<div><font color="forestgreen">% cfg.clusterstatistic = 'maxsum';</font></div>
<div><font color="forestgreen">% cfg.minnbchan = 2;</font></div>
<div><font color="forestgreen">% prepare_neighbours determines what sensors may form clusters</font></div>
<div>cfg_neighb.method = <font color="#A020F0">'distance'</font>;</div>
<div>cfg.neighbours = ft_prepare_neighbours(cfg_neighb, dataEEG); </div>
<div>cfg.tail = 0; <font color="forestgreen">%%% (-1 1)</font></div>
<div>cfg.clustertail = 0;</div>
<div>cfg.alpha = 0.05;</div>
<div>cfg.numrandomization = 5000;</div>
<div>cfg.avgoverchan = <font color="#A020F0">'no'</font> </div>
<div>cfg.avgovertime = <font color="#A020F0">'yes'</font> </div>
<div>cfg.avgoverfreq = <font color="#A020F0">'yes'</font> </div>
<div>subj = length(selsubs);</div>
<div>design = zeros(2,4*subj);</div>
<div><font color="blue">for<font color="black"> i = 1:subj</font></font></div>
<div>design(1,i) = i;</div>
<div><font color="blue">end</font></div>
<div><font color="blue">for<font color="black"> i = 1:subj</font></font></div>
<div>design(1,subj+i) = i;</div>
<div><font color="blue">end</font></div>
<div><font color="blue">for<font color="black"> i = 1:subj</font></font></div>
<div>design(1,subj+subj+i) = i;</div>
<div><font color="blue">end</font></div>
<div><font color="blue">for<font color="black"> i = 1:subj</font></font></div>
<div>design(1,subj+subj+subj+i) = i;</div>
<div><font color="blue">end</font></div>
<div><font face="Times New Roman" size="3"><span style="font-size:12pt;"> </span></font></div>
<div>design(2,1:subj) = 1;</div>
<div>design(2,subj+1:2*subj) = 2;</div>
<div>design(2,subj+subj+1:3*subj) = 3;</div>
<div>design(2,subj+subj+subj+1:4*subj) = 4;</div>
<div>cfg.design = design</div>
<div>cfg.uvar = 1;</div>
<div>cfg.ivar = 2; </div>
<div> </div>
<div><font color="forestgreen">%%%%stats option</font></div>
<div><font color="forestgreen">%cfg.design = design(2,:) %% stats option</font></div>
<div><font color="forestgreen">%cfg.ivar = 1;</font></div>
<div><font face="Times New Roman" size="3"><span style="font-size:12pt;"> </span></font></div>
<div>[stat] = ft_freqstatistics(cfg, frequencyR{1}{:}, frequencyR{2}{:},frequencyR{3}{:},frequencyR{4}{:}) </div>
<div><font face="Times New Roman" size="3"><span style="font-size:12pt;"> </span></font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri" color="#404040"><i>Dr Jac Billington</i></font></div>
<div><font face="Calibri" color="#404040"><i>Associate Professor - Perceptual Neuroscience</i></font></div>
<div><font face="Calibri" color="#404040"><i>School of Psychology, Rm G.06A</i></font></div>
<div><font face="Calibri" color="#404040"><i>University of Leeds</i></font></div>
<div><font face="Calibri" color="#404040"><i>Leeds, LS2 9JT</i></font></div>
<div><font face="Calibri" color="#404040"><i>Tel: +44(0)113 343 6686</i></font></div>
<div><font face="Calibri" color="#404040"> </font></div>
<div><font face="Calibri" color="#404040"><i>|| </i><a href="https://orcid.org/0000-0003-0995-8875"><font color="#0563C1"><i><u>Orcid Profile</u></i></font></a><i> || </i><a href="https://twitter.com/billingtonjac?lang=en"><font color="#0563C1"><i><u>Twitter</u></i></font></a><i>
|| </i></font></div>
<div><font face="Calibri"> </font></div>
<div><font face="Calibri"> </font></div>
</span></font>
</body>
</html>