hrf_smoothing_kernel: Compute an HRF smoothing kernel

View source: R/hrf_smoothing_kernel.R

hrf_smoothing_kernelR Documentation

Compute an HRF smoothing kernel

Description

This function computes a temporal similarity matrix from a series of hemodynamic response functions.

Usage

hrf_smoothing_kernel(len, TR = 2, form)

Arguments

len

The number of scans.

TR

The repetition time (default is 2 seconds).

form

the trialwise formula expression, see examples.

Examples

form <- onsets ~ trialwise(basis="gaussian")
sk <- hrf_smoothing_kernel(100, TR=1.5, form)

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