[FieldTrip] Design matrix for using ft_statfun_actvsblT

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Mon Mar 8 13:42:11 CET 2021


Hi Paul,

Given that the original error message you posted occurs in ft_timelockstatistics (at a point in the code where the lower-level ft_statfun_actvsblT has not yet been reached) it’s probably useful if you first investigate what the data looks like, either at that point in the code (using the matlab debugger), or before you call ft_timelockstatistics.

Your overarching question however seems to be ‘how to statistically evaluate an ERP  when there’s only a single condition?’

My question back to you would be: what’s the null hypothesis you aim to address with that question? I guess it would be something along the lines of ’the null hypothesis is that the averaged (across observations) signal before and after the event-of-interest is the same’. Typically it’s rather trivial to reject such a null hypothesis

As a follow up on your specific question related to ft_statfun_actvsblT: I found an old bug report here: http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3471. This means that indeed what you mention has been noticed before (i.e. an inconsistency between the function’s documentation, and its actual functional behaviour), but not yet solved.

Yet regardless, by reading the code, I wonder why anybody would use this function to begin with (for ERPs). The reason for this is that line 109 averages the data across time. Thus, the result of the comparison will highly depend on the window of temporal integration. For instance, if there’s an nice and symmetric biphasic ERP in the data, the average across time will be zero, which, if your ‘baseline’ data also has a nice average of 0, will not result in a rejection of the null hypothesis.

Best wishes,

Jan-Mathijs






On 4 Mar 2021, at 17:30, Paul Dhami <pdhami06 at gmail.com<mailto:pdhami06 at gmail.com>> wrote:

Dear Jan-Mathijs

Thank you for your response! It is greatly appreciated.

1. Admittedly, I am hoping to use FieldTrip to conduct some states on single channel data. Accordingly, I created a "hacked" structure following what should be in a time lock data type using this page: https://www.fieldtriptoolbox.org/reference/ft_datatype_timelock/

I believe I have copied it appropriately, so I am leaning towards a mistake with regards to my design matrix.

2. I was unsure of this, but following multiple FieldTrip threads, it seems as though some people have used 'actvsblT' for ERP data. My specific experiment contains a single stimuli, and I simply want to see if the stimuli modulates the neural activity in any significant manner (is post stimuli data different from the baseline data).

Reading the instructions for this function: https://www.fieldtriptoolbox.org/reference/ft_statfun_actvsblT/

It reads as though it could be used on TimeLocked data (after commenting out the lines you mentioned which restrict it to time-frequency representation).

I would love to know your thoughts on what would be the best way to statistically compare baseline data versus post stimuli data. This is admittedly my first time working with such an experimental setup.

Best wishes,
Paul
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20210308/64688bde/attachment.htm>


More information about the fieldtrip mailing list