powered by
Generates a design matrix to be used as a model for the simulated activation.
specifydesign(onsets, durations, totaltime, TR, effectsize, accuracy=0.1, conv = c("none", "gamma", "double-gamma", "Balloon"), cond.names = NULL, param = NULL)
A matrix specifying the design.
List or vector representing the onsets in seconds.
List or vector representing the durations in seconds.
Duration of the experiment in seconds.
Repetition time in seconds.
List or number representing the effectsize in each condition.
Microtime resolution in seconds.
Should the design matrix be convoluted, default is none.
Optional names for the conditions.
Parameters of the haemodynamic response function. See gammaHRF and canonicalHRF for more details.
gammaHRF
canonicalHRF
M. Welvaert
specifyregion,gammaHRF,canonicalHRF,balloon
specifyregion
balloon
os <- list(c(20,60),c(15,35)) d <- list(20, 10) total <- 80 TR <- 2 out <- specifydesign(os, d, total, TR, effectsize=list(2,5), conv="double-gamma") rm(os,d,total,TR,out)
Run the code above in your browser using DataLab