prepfmri: preprocessing fMRI data

Description Usage Arguments Value

View source: R/prepfmri.R

Description

The function preprocesses fMRI data (NIfTI format) with the following steps: detrending; demeaning; and PCA.

Usage

1
prepfmri(nii, mask, r = 40)

Arguments

nii

A 4-D fMRI image.

mask

A 3-D mask has the same dimension with dim(nii)[1:3].

r

The number of PCs.

Value

The preprocessed n*r data matrix (n is the number of masked voxels).


benwu233/DICA documentation built on Oct. 2, 2021, 7:12 p.m.