convolve_design: Convolve HRF with Design Matrix.

View source: R/event_vector.R

convolve_designR Documentation

Convolve HRF with Design Matrix.

Description

Convolves a HRF with a design matrix (one column per condition) to produce a list of regressors.

Usage

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

Arguments

hrf

A function representing the HRF.

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).

Value

A list of regressors (one for each column).


bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.