[FieldTrip] Defining a custom statfun for cluster statistics

Marcin m.leszczynski.m at gmail.com
Mon Jun 2 10:01:34 CEST 2014

Hey Steve,

this might give you a hint:


2014-06-02 9:39 GMT+02:00 Stephen Politzer-Ahles <spa268 at nyu.edu>:

> Hello all,
> Are there any examples for defining a new statfun to use in
> ft_timelockstatistics? I thought there were, but can't currently find them
> on the wiki.
> I am testing a 2x2 interaction (let's call the conditions Ia, Ib, IIa, and
> IIb), and I an only interested in a certain kind of interaction, one where
> abs(Ia-Ib) is large and abs(IIa-IIb) is small (i.e., an effect of the
> second factor at just one level of the first factor, and not the other
> level). So rather than using F as my test statistic for defining clusters,
> I would like to use something like abs(ttest(Ia,Ib))-abs(ttest(IIa,IIb)). I
> just don't know how to define the function to do this; if anyone could
> point me in the right direction I would greatly appreciate it.
> Thanks!
> Steve
> Stephen Politzer-Ahles
> New York University, Abu Dhabi
> Neuroscience of Language Lab
> http://www.nyu.edu/projects/politzer-ahles/
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140602/f8c82520/attachment-0002.html>

More information about the fieldtrip mailing list