convolve_events {autohrf}R Documentation

convolve_events

Description

A helper function for convolving events of a model with a generated HRF signal.

Usage

convolve_events(
  model,
  tr,
  max_duration,
  hrf = "spm",
  t = 32,
  p_boynton = c(2.25, 1.25, 2),
  p_spm = c(6, 16, 1, 1, 6, 0),
  f = 100
)

Arguments

model

A data frame containing information about the model to use and its events (event, start_time and duration).

tr

MRI's repetition time.

max_duration

Maximum duration of the signal.

hrf

Method to use for HRF generation, can be "boynton" or "spm".

t

The t parameter for Boynton or SPM HRF generation.

p_boynton

Parameters for the Boynton's HRF.

p_spm

Parameters for the SPM HRF.

f

Upsampling factor.

Value

Returns a list with the convolved signal and time series.


[Package autohrf version 1.1.3 Index]