hrf_gamma | R Documentation |
The hrf_gamma
function computes the gamma density-based HRF (hemodynamic response function) at given time points t
.
hrf_gamma(t, shape = 6, rate = 1)
t |
A vector of time points. |
shape |
A numeric value representing the shape parameter for the gamma probability density function. Default value is 6. |
rate |
A numeric value representing the rate parameter for the gamma probability density function. Default value is 1. |
A numeric vector representing the gamma HRF at the given time points t
.
Other hrf_functions:
hrf_bspline()
,
hrf_gaussian()
,
hrf_inv_logit()
,
hrf_mexhat()
,
hrf_sine()
,
hrf_spmg1()
,
hrf_time()
# Compute the gamma HRF representation for time points from 0 to 20 with 0.5 increments
hrf_gamma <- hrf_gamma(seq(0, 20, by = .5), shape = 6, rate = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.