Description Usage Arguments Value Author(s) See Also Examples
Simulates a 3D or 4D fMRI dataset for the specified design and with activation in the specified regions.
1 2 3 4 5 6 7 8 | simVOLfmri(design = list(), image = list(), base=0, dim, nscan = NULL,
TR = NULL, SNR=NULL, noise = c("none", "white", "temporal",
"spatial", "low-frequency", "physiological", "task-related",
"mixture"), type = c("gaussian", "rician"),
spat = c("corr", "gaussRF", "gammaRF"), weights, verbose = TRUE,
rho.temp = 0.2, rho.spat = 0.75, freq.low = 128,
freq.heart = 1.17, freq.resp = 0.2, FWHM = 4, gamma.shape = 6,
gamma.rate = 1, vee=1, template)
|
design |
List generated by |
image |
List generated by |
base |
Baseline of the data. Should be a single number or an array with the same dimensions as in |
dim |
Dimensions of the image space. |
nscan |
Number of scans for noise images. |
TR |
Repetition time for noise images. |
SNR |
Signal-to-noise ratio. |
noise |
Type of noise, default is white. |
type |
If |
spat |
If |
weights |
If |
verbose |
Logical indicating if warning should be printed. |
rho.temp |
If |
rho.spat |
If |
freq.low |
If |
freq.heart |
If |
freq.resp |
If |
FWHM |
If |
gamma.shape |
If |
gamma.rate |
If |
vee |
If |
template |
An array representing the anatomical structure or mask with dimensions equal to dim. |
A 3D or 4D array specifying the values for each voxel in the data.
M. Welvaert
simTSfmri
, simprepTemporal
, simprepSpatial
1 2 3 4 5 6 7 8 9 10 11 12 | design <- simprepTemporal(totaltime=200, onsets=seq(1,200,40),
durations=20, TR=2, effectsize=1, hrf="double-gamma")
region <- simprepSpatial(regions=2, coord=list(c(32,15),c(57,45)),
radius=c(10,7), form="sphere", fading=TRUE)
out <- simVOLfmri(design=design, image=region, dim=c(64,64),
SNR=1, noise="none")
## Not run: plot(out[32,15,], type="l")
## Not run: library(lattice)
library(gplots)
levelplot(out[,,10],scales=list(tck=0),
col.regions=colorpanel(50,high="white",low="black"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.