<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Max,<div><br></div><div>At the moment we are designing some major code changes to deal with source level data, and we need to ask you for some patience in this regard.</div><div>For now, you could try to move the call to ft_checkdata to outside ft_sourcestatistics, and change the powdimord into 'pos_rpt'; </div><div>Does it work if you subsequently call ft_sourcestatistics (with cfg.implementation = 'new')? This new implementation has never fully matured and may be instable. It has been found to work in certain situations, but it has never been fully tested on all possible processing histories that users may throw at it. Hence the urgent need to clean up the code. </div><div><br></div><div>Best,</div><div><br></div><div>Jan-Mathijs</div><div><br></div><div><br></div><div><br><div><div>On Mar 7, 2012, at 6:46 PM, Stenner, Max-Philipp wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dear fieldtrip users,<br><br><br><br>I am encountering a problem with ft_sourcestatistics when using output from ft_sourcegrandaverage. My parameter of interest is a logratio: log(mean(moments(time of interest))/mean(moments(baseline))) which I simply named 'pow' to be compatible with ft functions. Apart from this, nothing else deviates from how fieldtrip handles the data/nothing else was changed 'manually'.<br><br><br><br>The problem arises from the fact that the existence of 10 different subjects in the grandaverage (in the usual 1x10 struct field 'trial') isn't represented in the 'powdimord' field of the data after ft_checkdata(varargin{i}, 'datatype', {'source', 'volume'}, 'feedback', 'no', 'inside', 'index', 'sourcerepresentation', 'new'); in the new implementation of ft_sourcestatistics:<br><br><br><br>varargin{1}<br><br>ans =<br><br><br><br>(before ft_checkdata:)<br><br><br><br> pos: [8196x3 double]<br> var: [1x1 struct]<br> dimord: 'voxel'<br> trial: [1x10 struct]<br> inside: [8196x1 double]<br> outside: [0x1 double]<br> df: [8196x1 double]<br> cfg: [1x1 struct]<br><br><br><br>(after ft_checkdata:)<br><br><br><br> pos: [8196x3 double]<br> var: [1x1 struct]<br> dimord: 'pos'<br> inside: [8196x1 double]<br> outside: [0x1 double]<br> df: [8196x1 double]<br> cfg: [1x1 struct]<br> pow: [8196x10 double]<br> powdimord: 'pos'<br><br><br><br>This leads to a (wrong) transpose of the design (originally row1 = uvar, row2 = ivar [with two conditions for a depsamples T test]) and ultimately to the message<br><br>'The data must contain at least two units (usually subjects).'<br><br><br><br>Any help would be much appreciated, thanks very much!<br><br>Max<br><br>(fieldtrip version: fieldtrip-lite-20111130 on a Windows7 PC)<br>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jan-Mathijs Schoffelen, MD PhD </div><div><br></div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><br></div><div>Max Planck Institute for Psycholinguistics,</div><div>Nijmegen, The Netherlands</div><div><br></div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></div></span></div></span></div></span></span>
</div>
<br></div></body></html>