Learn R Programming

cudaBayesreg (version 0.3-6)

read.Zsegslice: Read brain segmented data based on structural regions for CSF, gray, and white matter.

Description

read.Zsegslice builds the Z matrix of the statistical model, based on the brain segmented regions CSF/GRY/WHT for a given fMRI dataset.

Usage

read.Zsegslice(slicedata, ymaskdata)

Arguments

Value

Zcentered matrix specifying the characteristics of cross-sectional units (optional group information)

concept

Read group information (Z data) for random effects estimation based on three brain segmented regions: CSF, gray and white matter.

Details

The FSL tools may be used to obtain the segmented masks {fbase}_csf, {fbase}_gry, and {fbase}_wht for a fMRI dataset. The segmented masks included in the package were obtained by applying FAST to the structural high-resolution image sM00223*, followed by FLIRT for low-resolution registration to fM00223*. The sM00223* and fM00223* datasets are available from the SPM site, and are described in chapter 28 of the SPM8 manual. The fMRI dataset swrfM_filtered_func_data.nii.gz is a filtered version of fM00223*.

References

FSL/FEAT Analysis tool, FMRIB Software Library (FSL) (www.fmrib.ox.ac.uk/fsl) SPM8 Manual, John Ashburner et. al., Functional Imaging Laboratory, Institute of Neurology, UCL, London, (http://www.fil.ion.ucl.ac.uk/spm/)

See Also

cudaMultireg.slice, post.randeff, premask, post.ppm

Examples

Run this code
fbase <- "swrfM"
slice <- 21
slicedata <- read.fmrislice(fbase=fbase, slice=slice, swap=FALSE )
ymaskdata <- premask(slicedata)
Z <- read.Zsegslice(slicedata, ymaskdata )
## Random effects simulation
fsave <- "/tmp/simultest2.sav"
out <- cudaMultireg.slice(slicedata, ymaskdata, R=2000, keep=5, nu.e=3, fsave=fsave,
	zprior=TRUE)
post.ppm(out=out, slicedata=slicedata, ymaskdata=ymaskdata, vreg=2)

Run the code above in your browser using DataLab