Skip to contents

gen_hrf_set constructs an HRF basis set from one or more component functions. This function is used to create arbitrary sets of basis functions for fMRI modeling.

Usage

gen_hrf_set(..., span = 32, name = "hrf_set")

Arguments

...

A list of functions f(t) mapping from time to amplitude.

span

The span in seconds of the HRF.

name

The name of the HRF.

Value

An instance of type HRF inheriting from function.

See also

Examples


hrf1 <- hrf_spmg1 |> gen_hrf(lag=0)
hrf2 <- hrf_spmg1 |> gen_hrf(lag=3)
hrf3 <- hrf_spmg1 |> gen_hrf(lag=6)

hset <- gen_hrf_set(hrf1, hrf2, hrf3)