Learn R Programming

FIACH (version 0.1.2)

lowBasis: Low pass filter basis set

Description

Generates cosines that can be used to low-pass filter data in a regression framework.

Usage

lowBasis(N, freq, tr)

Arguments

N
Number of time-points to be filtered.
freq
This is the cutoff frequency. It is specified in seconds for comparability with SPM.
tr
This is the time between samples(or the TR for fMRI data.)

Value

A matrix containing the basis set.

Examples

Run this code

## 300 scans, 10 second cutoff, tr=2.16 seconds
lb<-lowBasis(300,10,2.16)
dim(lb)
plot.ts(lb[,1:10])

Run the code above in your browser using DataLab