afni_trialwise: construct a native AFNI hrf specification for '3dDeconvolve'...

View source: R/afni.R

afni_trialwiseR Documentation

construct a native AFNI hrf specification for '3dDeconvolve' and individually modulated events using the 'stim_times_IM' argument.

Description

construct a native AFNI hrf specification for '3dDeconvolve' and individually modulated events using the 'stim_times_IM' argument.

Usage

afni_trialwise(
  label,
  basis = c("spmg1", "block", "dmblock", "gamma", "wav"),
  onsets = NULL,
  durations = 0,
  subset = NULL,
  id = NULL,
  start = 0,
  stop = 22,
  precision = 0.3,
  summate = TRUE
)

Arguments

label

name of regressor

basis

Character string specifying the basis function type

onsets

Numeric vector of event onset times

durations

Numeric vector of event durations (default 0)

subset

Expression for subsetting events

id

Character string identifier for the term

start

start of hrf (for multiple basis hrfs)

stop

end of hrf (for multiple basis hrfs)

precision

Numeric precision for convolution (default 0.3)

summate

Logical whether to summate overlapping responses (default TRUE)

Value

an afni_trialwise_hrfspec instance

Examples


tw <- afni_trialwise("trialwise", basis="gamma", onsets=seq(1,100,by=5))


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