[color=#000000]Dear Tuner,[/color]
[color=#000000]You may run any second-level analysis using the function [/color][b]conn_module[/b]( 'glm', ...). For example, if you have 5 subjects data in two groups, you could perform a two-sample t-test using the syntax:
[b]conn_module[/b]('glm', ...
'design_matrix',[1 0; 1 0; 0 1; 0 1; 0 1],...
'data', {'subject1_group1.nii'; 'subject2_group1.nii'; 'subject1_group2.nii'; 'subject2_group2.nii'; 'subject3_group2.nii'},...
'contrast_between',[1 -1]);
See 'help conn_module' for more details/options. The same syntax works for any type of source data in the "subject*.nii" files (e.g. functional or connectivity images, or connectivity matrices). If you want to create those data files from your own raw connectivity matrices, you may use the syntax:
[b]conn_mtx_write[/b]('subject1_group1.nii', R)
where R is a NxN connectivity matrix. See 'help conn_mtx_write' for more details about this function, or https://web.conn-toolbox.org/fmri-methods/general-linear-model for more details about second-level analyses
Hope this helps
Alfonso
[i]Originally posted by Tuner Holland:[/i][quote]Dear Conn Users,
I am going to compare functional and structural connectivity for two different group. Does anyone know that which Conn function is for the second level analysis? I will be sure that I am using exactly the same condition for both. I need that Conn function to create a single connectivity matrix for structural connectivity.
Thanks,
Tuner[/quote]
[color=#000000]You may run any second-level analysis using the function [/color][b]conn_module[/b]( 'glm', ...). For example, if you have 5 subjects data in two groups, you could perform a two-sample t-test using the syntax:
[b]conn_module[/b]('glm', ...
'design_matrix',[1 0; 1 0; 0 1; 0 1; 0 1],...
'data', {'subject1_group1.nii'; 'subject2_group1.nii'; 'subject1_group2.nii'; 'subject2_group2.nii'; 'subject3_group2.nii'},...
'contrast_between',[1 -1]);
See 'help conn_module' for more details/options. The same syntax works for any type of source data in the "subject*.nii" files (e.g. functional or connectivity images, or connectivity matrices). If you want to create those data files from your own raw connectivity matrices, you may use the syntax:
[b]conn_mtx_write[/b]('subject1_group1.nii', R)
where R is a NxN connectivity matrix. See 'help conn_mtx_write' for more details about this function, or https://web.conn-toolbox.org/fmri-methods/general-linear-model for more details about second-level analyses
Hope this helps
Alfonso
[i]Originally posted by Tuner Holland:[/i][quote]Dear Conn Users,
I am going to compare functional and structural connectivity for two different group. Does anyone know that which Conn function is for the second level analysis? I will be sure that I am using exactly the same condition for both. I need that Conn function to create a single connectivity matrix for structural connectivity.
Thanks,
Tuner[/quote]