Configure confound calculation for postprocessing
Source:R/setup_postprocess.R
setup_confound_calculate.Rd
This function configures the generation of a confound file during postprocessing. The resulting file includes nuisance regressors (e.g., motion parameters, CompCor components, DVARS, global signal) that may be used during task-based modeling to account for noise without directly altering the fMRI data.
Usage
setup_confound_calculate(ppcfg = list(), fields = NULL)
Details
Confounds can be filtered (e.g., with the same temporal filter as applied to fMRI data) or left unfiltered. Filtered regressors should typically include continuous-valued signals (e.g., a_comp_cor_, global signal), while spike regressors or discrete values (e.g., motion_outlier) should not be filtered.
This function only generates the confound regressors file. Actual regression is handled separately.