A helper function for convolving events of a model with a generated HRF signal.
convolve_events(
model,
tr,
max_duration,
hrf = "spm",
t = 32,
p_boynton = c(2.25, 1.25, 2),
p_spm = c(6, 16, 1, 1, 6, 0),
f = 100
)
Returns a list with the convolved signal and time series.
A data frame containing information about the model to use and its events (event, start_time and duration).
MRI's repetition time.
Maximum duration of the signal.
Method to use for HRF generation, can be "boynton" or "spm".
The t parameter for Boynton or SPM HRF generation.
Parameters for the Boynton's HRF.
Parameters for the SPM HRF.
Upsampling factor.