gen_hrf_lagged | R Documentation |
The gen_hrf_lagged
function takes an HRF function and applies a specified lag to it. This can be useful for modeling time-delayed hemodynamic responses.
gen_hrf_lagged(hrf, lag = 2, normalize = FALSE, ...)
hrf_lagged(hrf, lag = 2, normalize = FALSE, ...)
hrf |
A function representing the underlying HRF to be shifted. |
lag |
A numeric value specifying the lag or delay in seconds to apply to the HRF. This can also be a vector of lags, in which case the function returns an HRF set. |
normalize |
A logical value indicating whether to rescale the output so that the maximum absolute value is 1. Defaults to |
... |
Extra arguments supplied to the |
A function representing the lagged HRF. If lag
is a vector of lags, the function returns an HRF set.
an lagged hrf function
hrf_lagged()
: alias for gen_hrf_lagged
Other gen_hrf:
gen_hrf_blocked()
,
gen_hrf_set()
Other gen_hrf:
gen_hrf_blocked()
,
gen_hrf_set()
hrf_lag5 <- gen_hrf_lagged(HRF_SPMG1, lag=5)
hrf_lag5(0:20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.