single_trial_regressor: single_trial_regressor

View source: R/regressor.R

single_trial_regressorR Documentation

single_trial_regressor

Description

construct a regressor object that has a single onset

Usage

single_trial_regressor(
  onsets,
  hrf = HRF_SPMG1,
  duration = 0,
  amplitude = 1,
  span = 24
)

Arguments

onsets

the event onset in seconds, must be of length 1.

hrf

a hemodynamic response function, e.g. HRF_SPMG1

duration

duration of the event (default is 0)

amplitude

scaling vector (default is 1)

span

the temporal window of the impulse response function (default is 24)

Value

an S3 list of type single_trial_regressor

Examples


reg <- single_trial_regressor(c(10), HRF_SPMG1)
pred <- evaluate(reg, seq(0,100,by=2))
nbasis(reg) == 1

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