dcmGenerate: DCM timeseries generator

Description Usage Arguments Value Author(s) See Also Examples

View source: R/dcmGenerate.R

Description

Generate simulated timeseries from a specified DCM

Usage

1
dcmGenerate(DCM, SNR = 0, ar = 0,names=DCM$names)

Arguments

DCM

A DCM list containing all model and experimental parameters. This list can be constructed using dcm_param or manually.

SNR

SNR of the timeseries. The number represents sd(signal)/sd(noise). If SNR=0 the pure signal is generated.

ar

Autoregressioncoefficient of the noise added. 0 (default) means white, gaussian noise.

names

The names of the variables.

Value

Function creates a field DCM$sim, which contains the simulated timeseries per timepoint (rows) and region (columns).

Author(s)

Bjorn Roelstraete

See Also

dcm_param

Examples

1
2
3
4
# Use example DCMex to generate three timeseries V1, V2, V3 with a SNR of 1 and AR(.2)

 ts <-  dcmGenerate(DCMex, SNR=1, ar=.2, names=c('V1','V2','V3'))
 plot(ts[,1], t='b')

FIAR documentation built on June 5, 2018, 5:03 p.m.

Related to dcmGenerate in FIAR...