<DIV>Dear Jan Mathijs and co,</DIV>  <DIV><BR>thanks for following up with my queries. I feel very close to getting my result barring a few difficulties.<BR></DIV>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <DIV>> From the other statfun_xxx functions in the fieldtrip ‘private’ <BR>> folder, I thought that the statfun_depsamplesT would be more <BR>> appropriate for calculating the t statistic for my two conditions. <BR>> However, when I modify my script by substituting cfg.statistic = <BR>> ‘diff’ for cfg.statistic = ‘depsamplesT’ and run it, it crashes.<BR><BR>could you be a bit more specific about why it crashes? Theoretically it shouldn't crash, but I am not aware of the intricacies of the function.</DIV>  <DIV> </DIV></BLOCKQUOTE>  <DIV>I have run the script (attached) several times and get slightly different errors each time. The last error version i get is 'Segmentation violation
 occurred within signal handler. Unable to complete stack trace; stack was probably corrupted.' Any hints as to what this may mean? I've also attached here my data structures (6 subjects, two conditions (XM, Vis) each), just in case.</DIV>  <DIV> </DIV>  <DIV>>It might be worthwhile to check whether there is a statfun_paired-tstat in the release-version, >which should do the same trick. </DIV>  <DIV> </DIV>  <DIV>I did look into the most recent version of Fieldtrip (07.12.2006) and don't think this function is available.</DIV>  <DIV> </DIV>  <DIV>Many thanks,</DIV>  <DIV>Lorina<BR></DIV><p>
                <hr size=1>
<a href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/spamguard/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">All New Yahoo! Mail</a> – Tired of Vi@gr@! come-ons? Let our SpamGuard protect you.