Skip to contents

construct an 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
)

Arguments

label

name of regressor

basis

the impulse response function or the name of a pre-supplied function, one of: "gamma", "spmg1", "spmg2", "spmg3", "bspline", "gaussian".

onsets

optional onsets override. If missing, onsets will be taken from the event_model

durations

optional durations override. If missing, onsets will be taken from the event_model

subset

an expression indicating the subset of 'onsets' to keep

id

a unique character identifier used to refer to term, otherwise will be determined from variable names.

start

start of hrf (for multiple basis hrfs)

stop

end of hrf (for multiple basis hrfs)

Examples



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