Learn R Programming

detectR (version 0.3.0)

preproc: Optional preprocessing step for regressing out noise variables.

Description

This function saves the residuals after regressing the user-defined noise variables from the user-defined "signal" variables. Noise variables can be nuisance regressors (such as cebral spinal fluid in fMRI), time vectors, or any other vector that the user wishes to regress out.

Usage

preproc(Y, noise, signal)

Value

signalmatrix

Arguments

Y

data: Y = length*dim

noise

string vector indicating which variables (columns) are regressors

signal

string vector indicating which variables to regress out the noise variables from