Skip to contents

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.

Usage

convolve_design(hrf, dmat, globons, durations, summate = TRUE)

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)

Value

A list of regressors, one for each column in the design matrix.