simTSfmri {neuRosim} | R Documentation |
Simulates an fMRI time series for the specified design and noise type.
simTSfmri(design = list(), base=0, nscan = NULL, TR = NULL, SNR=NULL, noise = c("none", "white", "temporal", "low-frequency", "physiological", "task-related", "mixture"), type = c("gaussian", "rician"), weights, verbose = TRUE, rho = 0.2, freq.low = 128, freq.heart = 1.17, freq.resp = 0.2, vee=1)
design |
List generated by |
base |
Baseline value of the time series. |
nscan |
Number of scans. |
TR |
Repetition time in seconds. |
SNR |
Signal-to-noise ratio of the time series. |
noise |
Type of noise (white is default). |
type |
If |
weights |
If |
verbose |
Logical indicating if warnings should be returned. |
rho |
If |
freq.low |
If |
freq.heart |
If |
freq.resp |
If |
vee |
If |
A vector representing the fMRI time series.
M. Welvaert
design <- simprepTemporal(totaltime=200, onsets=seq(1,200,40), durations=20, effectsize=1, TR=2, hrf="double-gamma") ts <- simTSfmri(design=design, SNR=1, noise="white") ## Not run: plot(ts, type="l")