hrf | R Documentation |
This function is to be used in formulas for fitting functions, e.g. onsets ~ hrf(fac1,fac2) ...
hrf(
...,
basis = "spmg1",
onsets = NULL,
durations = NULL,
prefix = NULL,
subset = NULL,
precision = 0.3,
nbasis = 1,
contrasts = NULL,
id = NULL,
lag = 0,
summate = TRUE
)
... |
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 |
precision |
sampling precision in seconds |
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 |
summate |
whether impulse amplitudes sum up when duration is greater than 0. |
an hrfspec
instance
## 'hrf' is typically used in the context of \code{formula}s.
form <- onsets ~ hrf(x) + hrf(y) + hrf(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.