hrf_from_coefficients: Combine HRF Basis with Coefficients

View source: R/all_generic.R

hrf_from_coefficientsR Documentation

Combine HRF Basis with Coefficients

Description

Create a new HRF by linearly weighting the basis functions of an existing HRF. This is useful for turning estimated basis coefficients into a single functional HRF.

Usage

hrf_from_coefficients(hrf, h, ...)

Arguments

hrf

An object of class HRF.

h

Numeric vector of length nbasis(hrf) giving the weights.

...

Additional arguments passed to methods.

name

Optional name for the resulting HRF.

Value

A new HRF object with nbasis = 1.


bbuchsbaum/fmrireg documentation built on June 10, 2025, 8:18 p.m.