HRF_main {hrf} | R Documentation |
Canonical (double-gamma) HRF
Description
Calculate the HRF from a time vector and parameters. Optionally compute the first or second derivative of the HRF instead. Form of HRF is similar to SPM but here the response and undershoot are scaled so the difference of the HRFs peaks at 1 and -c
Usage
HRF_main(t, a1 = 6, b1 = 1, a2 = NULL, b2 = NULL, c = 1/6, o = 0)
Arguments
t |
time vector (in seconds). Must be equally spaced. |
a1 |
delay of response. Default: |
b1 |
response dispersion. Default: |
a2 |
delay of undershoot. Default: |
b2 |
dispersion of undershoot. Default: |
c |
scale of undershoot. Default: |
o |
onset of response (in seconds). Default: |
Value
HRF vector corresponding to time vector t
Examples
upsample <- 100
HRF_main(seq(0, 30, by=1/upsample))
[Package hrf version 0.1.3 Index]