Learn R Programming

ANTsR (version 1.0)

compcor: Simple compcor function.

Description

Compcors the input matrix using SVD and returns the result.

Usage

compcorr_nuisance<-compcor( fmri, mask,  ncompcor=4, variance_extreme=0.975, returnhighvarmat=F, returnv=F )

Arguments

mat

input fmri image or matrix

returnv

returns the singular vectors in v-space

returnhighvarmat

returns the high variance matrix on which svd is performed

Value

dataframe is output

Examples

Run this code
# NOT RUN {
mat <- matrix( rnorm(50000) ,ncol=500)
compcorrdf<-compcor( mat ) 
# }

Run the code above in your browser using DataLab