balloon | R Documentation |
Generates the BOLD signal based on the Balloon model of Buxton et al. (2004).
balloon(stim, totaltime, acc, par=list(), verbose=TRUE)
stim |
Vector representing the presence/absence (1-0 coding) of a stimulus/activation in seconds. |
totaltime |
Total duration of stimulus vector in seconds. |
acc |
Microtime resolution of stimulus vector in seconds. |
par |
List representing the parameters of the Balloon model. The list should contain the following:
|
verbose |
If |
Based on the provided stimulus boxcar function, a neural activation function is generated that enters the Balloon model to generate a BOLD response. The microtime resolution ensures a high-precision generation of the response. More details can be found in Buxton et al. (2004).
Vector representing the values of the BOLD signal for the given stimulus vector and microtime resolution.
G. Verdoolaege, M. Welvaert
Buxton, RB, Uludag, K, Dubowitz, DJ and Liu, TT (2004). Modeling the hemodynamic response to brain activation. NeuroImage, 23, S220-S233.
canonicalHRF
, gammaHRF
s <- rep(rep(0,10), rep(1,10), 5)
T <- 100
it <- 0.1
out <- balloon(s, T, it)
#takes a couple of seconds due to solving of the differential equations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.