powered by
Generate simulated timeseries from a specified DCM
dcmGenerate(DCM, SNR = 0, ar = 0,names=DCM$names)
A DCM list containing all model and experimental parameters. This list can be constructed using dcm_param or manually.
SNR of the timeseries. The number represents sd(signal)/sd(noise). If SNR=0 the pure signal is generated.
Autoregressioncoefficient of the noise added. 0 (default) means white, gaussian noise.
The names of the variables.
Function creates a field DCM$sim, which contains the simulated timeseries per timepoint (rows) and region (columns).
dcm_param
# NOT RUN { # 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') # }
Run the code above in your browser using DataLab