simprepTemporal: Prepare temporal structure of the data

Description Usage Arguments Value Author(s) See Also Examples

View source: R/simprepTemporal.R

Description

Prepare a list defining the necessary parameters to specify the temporal structure of the activation data.

Usage

1
2
3
4
simprepTemporal(totaltime, regions = NULL, onsets, durations, 
	TR, effectsize, accuracy=0.1, 
	hrf = c("gamma", "double-gamma", "Balloon"), 
	param = NULL)

Arguments

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.

Value

A list with the necessary arguments to be used in simVOLfmri or simTSfmri.

Author(s)

M. Welvaert

See Also

simVOLfmri, simTSfmri, simprepSpatial, specifyregion

Examples

1
2
3
4
5
6
7
8
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")

neuRosim documentation built on May 1, 2019, 8:47 p.m.