specifydesign: Generate design matrix.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/specifydesign.R

Description

Generates a design matrix to be used as a model for the simulated activation.

Usage

1
2
3
specifydesign(onsets, durations, totaltime, TR, effectsize, accuracy=0.1, 
	conv = c("none", "gamma", "double-gamma", "Balloon"), 
	cond.names = NULL, param = NULL)

Arguments

onsets

List or vector representing the onsets in seconds.

durations

List or vector representing the durations in seconds.

totaltime

Duration of the experiment in seconds.

TR

Repetition time in seconds.

effectsize

List or number representing the effectsize in each condition.

accuracy

Microtime resolution in seconds.

conv

Should the design matrix be convoluted, default is none.

cond.names

Optional names for the conditions.

param

Parameters of the haemodynamic response function. See gammaHRF and canonicalHRF for more details.

Value

A matrix specifying the design.

Author(s)

M. Welvaert

See Also

specifyregion,gammaHRF,canonicalHRF,balloon

Examples

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

NeuroStat/neuRosim documentation built on Sept. 14, 2019, 10:37 a.m.