detrend {fMRItools}R Documentation

Detrending with DCT or FFT

Description

Detrending with DCT or FFT

Usage

detrend(X, TR, f = 0.008, method = c("DCT", "FFT"))

Arguments

X

A numeric matrix, with each column being a timeseries to detrend. For fMRI data, X should be T timepoints by V brain locations.

TR

The time step between adjacent rows of X, in seconds

f

The frequency of the highpass filter, in Hertz. Default: .008

method

"DCT" (default) or "FFT".

Value

Detrended X

Examples

detrend(matrix(rnorm(700), nrow=100), TR=.72)

[Package fMRItools version 0.4.2 Index]