Hi,
Yes, that looks fine, I am not sure what size(corr_mtx_1,3) may be in your script, but assuming that it is 20 then yes, the design and contrast looks perfectly correct to perform the desired between-group comparisons.
Best
Alfonso
Originally posted by Hayreddin Said Unsal:
Hi,
I have the ROI- ROI connectivity matrices from another platform. I would like to run statistical analysis and plot the ring diagram etc in CONN. I saved all the matrices from 160 subjects in "corr_mtx_all_8_groups.mtx.nii" (8 groups, each group's n=20). Could you verify if the X, C, and M are correct to compare the significance of the difference between the 2 groups: G3 and G7? Is the attached resulting ring plot going to be the multiple comparisons between these two groups?
X = [repmat([1 0 0 0 0 0 0 0],[size(corr_mtx_1,3) 1]); ...
repmat([0 1 0 0 0 0 0 0],[20 1]); ...
repmat([0 0 1 0 0 0 0 0],[20 1]]); ...
repmat([0 0 0 1 0 0 0 0],[20 1]]); ...
repmat([0 0 0 0 1 0 0 0],[20 1]]); ...
repmat([0 0 0 0 0 1 0 0],[20 1]]); ...
repmat([0 0 0 0 0 0 1 0],[20 1]]); ...
repmat([0 0 0 0 0 0 0 1],[20 1]); ];
%group_order = 'G1' 'G2' 'G3' 'G4' 'G5' 'G6' 'G7' 'G8'];
% C = [-1 0 0 0 1 0 0 0] ; ... % G5- G1
C = [0 0 1 0 0 0 -1 0] ; % G3 - G7
M = 1;
savefolder = ['C:\all_8_groups'];
conn_module( 'GLM' , ...
'data', ['corr_mtx_all_8_groups.mtx.nii'], ...
'design_matrix', X, ...
'contrast_between', C, ...
'contrast_within', M, ...
'folder', savefolder );
Threaded View
Title | Author | Date |
---|---|---|
Hayreddin Said Unsal | Apr 22, 2024 | |
Alfonso Nieto-Castanon | Apr 25, 2024 | |