afni_trialwise | R Documentation |
construct a native AFNI hrf specification for '3dDeconvolve' and individually modulated events using the 'stim_times_IM' argument.
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
)
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) |
an afni_trialwise_hrfspec
instance
tw <- afni_trialwise("trialwise", basis="gamma", onsets=seq(1,100,by=5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.