[FieldTrip] using indepsamplesregrT for connectivity data(wPLI)
봉수현
npdrbong at kaist.ac.kr
Thu Nov 14 08:13:47 CET 2024
Dear fieldtrip experts!
Hello? I'm having some difficulties with statistical analysis and have a question.
I am planning to perform an independent sample regression analysis in FieldTrip using wPLI values calculated from 148 atlas-based scouts extracted from Brainstorm time series.
I have imported the difference in wPLI between two conditions from Brainstorm into FieldTrip, and the data is formatted as 10878x1x4 (data x time x frequency bin).
I've appended individual behavioral measures as independent variables for 18 subjects' data.
Afterwards, I created code to find significant masks in 'stat'.
However, I have not found any significant masks, which seems unusual.
I am using FDR for multiple corrections, and it might mean that my hypothesis is rejected, but it seems odd that there are no significant masks even when I set the alpha value to 1.
Could there be any issues in the code that might be causing problems?
Without setting corrections, approximately 500 channels are found to be significant...
stat = struct();all_p_values = [];
load('c_stat.mat');
independent_variable = zscore(independent_variable);
total_data = {};
for i = 1:length(files)
data = load(fullfile(dataPath, files(i).name));
nan_indices = all(isnan(data.powspctrm), 3);
valid_indices = find(~nan_indices);
data.powspctrm = data.powspctrm(valid_indices, :, :);
total_data{i} = data;
end
design(1,1:18) =independent_variable;
cfg = [];
cfg.statistic = 'ft_statfun_indepsamplesregrT';
cfg.method = 'montecarlo';
cfg.numrandomization = 1000;
cfg.design = design;
cfg.ivar = 1;
cfg.correctm = 'fdr';
cfg.alpha = 0.05;
cfg.tail = 0;
stat = ft_freqstatistics(cfg, total_data{:});
significant_indices = find(stat.mask);
if ~isempty(significant_indices) fprintf('Found %d significant results:
', length(significant_indices)); disp(significant_indices);else disp('No significant results found.');end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20241114/84934251/attachment.htm>
More information about the fieldtrip
mailing list