gen_hrf_set: Generate an HRF Basis Set

View source: R/hrf.R

gen_hrf_setR Documentation

Generate an HRF Basis Set

Description

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

Other gen_hrf: gen_hrf_blocked(), gen_hrf_lagged(), gen_hrf_library()

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)

bbuchsbaum/fmrireg documentation built on May 16, 2023, 10:56 a.m.