Convolves a HRF with a design matrix (one column per condition) to produce a list of regressors.
Arguments
- hrf
A function representing the HRF (used when hrf_list is NULL).
- dmat
Design matrix (with named columns).
- globons
Numeric vector of global onsets.
- durations
Numeric vector of event durations.
- summate
Logical; if TRUE, summate the convolved HRF (default: TRUE).
- hrf_list
Optional list of HRF objects, one per event (row in dmat). When provided, allows per-onset HRF specification. The list is subsetted to match non-zero amplitude events for each condition.