Filtered X, or if X was an integer, the set of DCT
bases to use for nuisance regression (not including an intercept).
Arguments
X
A numeric matrix, with each column being a timeseries to filter
For fMRI data, X should be T timepoints by V brain
locations.
Alternatively, a single integer giving the number of timepoints in data.
The return value will be the suitable set of DCT bases. Only works with
method == "DCT".
TR
The time step between adjacent rows of X, in seconds.
hpf
The frequency of the highpass filter, in Hertz. Default: .008.
lpf
The frequency of the lowpass filter, in Hertz. Default: NULL
(skip lowpass filtering). If both are provided, lpf > hpf must be true.
method
"DCT" (default) or "FFT". FFT is not compatible
with lpf yet.