Inspects a block-wise nuisance regressor list before it is added to a
baseline model. The check is run per block and compares nuisance columns
against the baseline terms that would be constructed from basis, degree,
and intercept.
Arguments
- nuisance_list
A list of numeric matrices or data frames, one per block.
- sframe
A sampling frame.
- basis, degree, intercept
Baseline model settings used to construct the comparison baseline terms.
- tol
Numeric tolerance passed to QR rank checks.
- duplicate_threshold
Absolute correlation threshold used to flag duplicate or near-duplicate columns.
- na_action
Character; how to handle
NAvalues innuisance_listcolumns before the diagnostics run."drop"(default) leavesNAs in place so any column containing one is treated as non-finite."zero"replacesNAwith0(matching the fMRIPrep leading-row convention) and"median"replacesNAwith the column median; both repair an isolated leadingNA(e.g. in DVARS or framewise displacement) so the regressor is retained.NaNandInfare never repaired and remain non-finite.