<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Dear all,<br><br>I noticed that the result of sourcestatistics can be quite different when using cfg.statistic = 'indepsamplesF'<br>or also cfg.statistic ='indepsamplesregrT', depending on whether you specify a unit of observations (UO's)<br>variable in the design matrix or not.<br><br>For example when running the code without the UOs-variable as following<br><br>cfg.design(1,:) = [ones(1,length(indx1)) 2*ones(1,length(indx1)) 3*ones(1,length(indx1)) 4*ones(1,length(indx1))];<br>cfg.ivar = 1;<br><br>I get a different result than if I run:<br><br>cfg.design(1,:) = [ones(1,length(indx1)) 2*ones(1,length(indx2)) 3*ones(1,length(indx3)) 4*ones(1,length(indx4))];<br>cfg.design(2,:) = [indx1' indx2' indx3' indx4'];<br>cfg.ivar = 1;<br>
cfg.uvar = 2;<br><br>Note that in the second case the indexes in the UOs variable are not sorted.<br><br>I guess that you are not supposed to run the code as in the second case,<br>but I would still like to know why I get different results. Shouldn't it be the same anyways?<br><br>It would be great to get an explanation for the discrepancy between both codes.<br><br>Best,<br>Fred<br><br>-- <br>Frédéric Roux, PhD student<br>Department of Neurophysiology<br>Max Planck Institute for Brain Research<br>D-60529 Frankfurt am Main<br>Frederic.Roux@brain.mpg.de<br>+49(0)69630183225<br><br><br>                                     </div></body>
</html>