This function convolves a given hemodynamic response function (HRF) with the design matrix of an fMRI study. It is useful for modeling the expected BOLD signal in response to experimental conditions.
Arguments
- hrf
A numeric vector representing the hemodynamic response function
- dmat
A design matrix with columns representing different experimental conditions
- globons
A numeric vector of global onsets for each event
- durations
A numeric vector of event durations
- summate
A logical value indicating whether to summate the convolved HRF (default: TRUE)