afni_hrf | R Documentation |
construct an native AFNI hrf specification for '3dDeconvolve' with the 'stim_times' argument.
afni_hrf(
...,
basis = c("spmg1", "block", "dmblock", "tent", "csplin", "poly", "sin", "gam", "spmg2",
"spmg3", "wav"),
onsets = NULL,
durations = NULL,
prefix = NULL,
subset = NULL,
nbasis = 1,
contrasts = NULL,
id = NULL,
lag = 0,
start = NULL,
stop = NULL
)
... |
the variable names, all of which must be present in the enclosing environment (e.g. an |
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 |
durations |
optional durations override. If missing, onsets will be taken from the |
prefix |
a character string that is prepended to the variable names and used to identify the term.
Can be used to disambiguate two |
subset |
an expression indicating the subset of 'onsets' to keep |
nbasis |
number of basis functions – only used for hemodynamic response functions (e.g. bspline) that take a variable number of bases. |
contrasts |
one or more |
id |
a unique |
lag |
a temporal offset in seconds which is added to onset before convolution |
start |
the start of the window for sin/poly/csplin models |
stop |
the stop time for sin/poly/csplin models |
an afni_hrfspec
instance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.