construct a native AFNI hrf specification for '3dDeconvolve' and individually modulated events using the 'stim_times_IM' argument.
Source:R/afni_hrf_specs.R
afni_trialwise.Rd
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)
Examples
tw <- afni_trialwise("trialwise", basis="gamma", onsets=seq(1,100,by=5))