This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
- nilearn.glm.second_level.make_second_level_design_matrix(subjects_label, confounds=None)#
Set up a second level design.
Construct a design matrix with an intercept and subject specific confounds.
Contain subject labels to extract confounders in the right order, corresponding with the images, to create the design matrix.
If given, contains at least two columns,
subject_labeland one confound. The subjects list determines the rows to extract from confounds thanks to its
subject_labelcolumn. All subjects must have confounds specified. There should be only one row per subject. Default=None.
The second level design matrix.