getHRF | R Documentation |
This function retrieves a specified hemodynamic response function (HRF) by name and creates an HRF object with specified properties.
getHRF(
name = c("gam", "gamma", "spmg1", "spmg2", "spmg3", "bspline", "gaussian", "tent",
"bs"),
nbasis = 5,
span = 24,
lag = 0,
width = 0,
summate = TRUE,
normalize = FALSE,
...
)
name |
The name of the HRF function. Available options: "gamma", "spmg1", "spmg2", "spmg3", "bspline", "gaussian", "tent", "bs". |
nbasis |
The number of basis functions (if relevant, default: 5). |
span |
The temporal window over which the basis sets span (default: 24). |
lag |
The time lag parameter (default: 0). |
width |
The width parameter (default: 0). |
summate |
Whether the HRF response increases its amplitude as a function of stimulus duration (default: TRUE). |
normalize |
Whether to scale output so that the peak is 1 (default: FALSE). |
... |
Additional arguments passed to the gen_hrf function. |
An HRF object with the specified properties.
hrf_obj <- getHRF(name = "gamma", nbasis = 5, span = 24)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.