View source: R/simprepTemporal.R
simprepTemporal | R Documentation |
Prepare a list defining the necessary parameters to specify the temporal structure of the activation data.
simprepTemporal(totaltime, regions = NULL, onsets, durations,
TR, effectsize, accuracy=0.1,
hrf = c("gamma", "double-gamma", "Balloon"),
param = NULL)
totaltime |
Duration of the experiment. |
regions |
Number of regions. If not specified, it is assumed that all regions have the same design matrix. |
onsets |
List or vector representing the onsets of the stimulus in seconds. |
durations |
List or vector representing the durations of the stimulus in seconds. |
TR |
Repetition time in seconds. |
effectsize |
List or number representing the effectsize in each condition. |
accuracy |
Microtime resolution in seconds. |
hrf |
Haemodynamic response function (double-gamma is default) |
param |
Vector, matrix or array representing the parameters of the haemodynamic response function. |
A list with the necessary arguments to be used in simVOLfmri
or simTSfmri
.
M. Welvaert
simVOLfmri
, simTSfmri
, simprepSpatial
, specifyregion
ncond <- 2
os <- list(c(20,60),c(15,35))
d <- list(20, 10)
effect <- list(7,10)
total <- 80
TR <- 2
out <- simprepTemporal(total, onsets=os, durations=d, TR=TR,
effectsize=effect, hrf="double-gamma")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.