HRF_main | R Documentation |
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
HRF_main(t, a1 = 6, b1 = 1, a2 = NULL, b2 = NULL, c = 1/6, o = 0)
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: |
HRF vector corresponding to time vector t
upsample <- 100
HRF_main(seq(0, 30, by=1/upsample))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.