Convolve an event-related design matrix with an HRF.
Source:R/event_vector.R
convolve.event_term.Rd
This function takes an event-related design matrix and convolves it with a specified Hemodynamic Response Function (HRF) to create a new design matrix suitable for fMRI analysis. It also supports additional arguments for flexibility and customization.
Usage
# S3 method for event_term
convolve(
x,
hrf,
sampling_frame,
drop.empty = TRUE,
summate = TRUE,
precision = 0.3,
...
)
Arguments
- x
A data frame containing the input design matrix.
- hrf
A Hemodynamic Response Function to convolve the design matrix with.
- sampling_frame
A data frame specifying the sampling frame for the analysis.
- drop.empty
Logical. If TRUE, empty rows in the design matrix will be removed.
- summate
Logical. If TRUE, the convolved design matrix will be summed.
- precision
Numeric. The desired precision for the calculations.
- ...
Additional arguments to be passed to the function.