[FieldTrip] Threshold free cluster enhancement for a Repeated Measures design
Bhonsle, Aishwarya
aishwarya.bhonsle at med.uni-goettingen.de
Thu Apr 25 13:26:57 CEST 2024
Hi all,
I am a little lost with cluster-based analyses for my data. My experiment is a within-subjects design, with 30 subjects performing a perceptual task where they report on whether they see a given target or not (factor, perception; 2 levels - visible, invisible), and they perform the task either at rest or while cycling at low-resistance or at high-resistance (factor, cycling; 3 levels: rest, low-resistance, high-resistance).
I am using Fieldtrip to analyse alpha (8-12 Hz) amplitudes in a specific time window of interest. I do this by calculating the average absolute value of the 8-12 Hz filtered Hilbert transform for each channel separately. I am trying to find time points and channels that differ between my experimental conditions in my time window of interest by running a threshold free cluster enhancement, requiring a minimum number of two neighbouring channels and consecutive time points and employing a Monte Carlo permutation with 5000 iterations in order to obtain cluster-corrected p-values as follows:
cfg = [];
cfg.channel = 'EEG';
cfg.latency = [2 3];
cfg.avgovertime = 'no';
cfg.parameter = 'alpha';
cfg.method = 'montecarlo';
cfg.statistic = 'ft_statfun_depsamplesT';
cfg.alpha = 0.05;
cfg.correctm = 'tfce';
cfg.correcttail = 'prob';
cfg.numrandomization = 5000;
cfg.minnbchan = 2; % minimal number of neighbouring channels
Nsub = 30;
cfg.design(1,1:2*Nsub) = [ones(1,Nsub) 2*ones(1,Nsub)];
cfg.design(2,1:2*Nsub) = [1:Nsub 1:Nsub];
cfg.ivar = 1; % the 1st row in cfg.design contains the independent variable
cfg.uvar = 2; % the 2nd row in cfg.design contains the subject number
%Effect of perception
R_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, R_alpha_vis{:}, R_alpha_invis{:});
L_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, L_alpha_vis{:}, L_alpha_invis{:});
H_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, H_alpha_vis{:}, H_alpha_invis{:});
% Effect of cycling
RLvis_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, R_alpha_vis{:}, L_alpha_vis{:});
RHvis_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, R_alpha_vis{:}, H_alpha_vis{:});
LHvis_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, L_alpha_vis{:}, H_alpha_vis{:});
RLinvis_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, R_alpha_invis{:}, L_alpha_invis{:});
RHinvis_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, R_alpha_invis{:}, H_alpha_invis{:});
LHinvis_stat_cluster_preRDM_noavg = ft_timelockstatistics(cfg, L_alpha_invis{:}, H_alpha_invis{:});
I am not sure of the following:
1. The design of test - am I doing this right? I am comparing two conditions at a time, choosing the comparisons that would allow me to check the main effects of cycling and of perception if this were a Repeated Measures ANOVA. But I am not sure if this is the appropriate way to go about this, as I feel this might not be adequately capturing the repeated measures design of the experiment? How would I go about this? How would I have to change the cfg.design? Also, is 'ft_statfun_depsamplesT' the appropriate statistic?
On the other hand, I am not sure there is a way to capture the repeated measures design while doing a permutation test? For instance, I have seen some threads on the mailing about the possibility of testing for interaction effects using a permutation test and about how this is not possible since that is testing for a linear (parametric) model to explain the variance in the dependent variable.
I have read this thread (https://mailman.science.ru.nl/pipermail/fieldtrip/2011-December/017428.html) and though they seem relevant to my analysis, I am not sure how to implement Jan-Mathijs's suggestions.
2. When I run the analysis described above, I don't find any significant clusters (or any clusters at all, although when I run a cluster based analysis without tfce, some clusters are identified, however, they are also not significant). Looking at the visualisation of my data, it doesn't seem like that should be the case (although, I do understand that visual inspection is not the best estimate of statistical significance of a cluster). Furthermore, when I compare the mean alpha amplitudes of my various conditions for my time window of interest and limited to parieto-occipital channels (chosen based on a priori assumptions from previous studies and papers on this experimental paradigm), I do find significant effects. Again, I suppose this doesn't have to translate to finding significant clusters? But I am a little confused thinking about the fact that if I had no a priori knowledge to base my analysis on, and I ran a cluster based analysis to find time windows/channels of interest and found no significant clusters, I would probably not have dug any deeper and missed the significant effects we do find when considering alpha amplitude at the parieto-occipital channels?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20240425/24715ff2/attachment.htm>
More information about the fieldtrip
mailing list