Learn R Programming

fMRItools (version 0.7.2)

expand_RPs: Expand realignment parameters (RPs)

Description

Compute the squares, differences, and square differences of each RP timeseries.

Usage

expand_RPs(RPs)

Value

A \(T \times 4N\) numeric matrix, with the first \(N\) columns being the original RPs, the next \(N\) being the differences, the next \(N\) being the squares, and the last \(N\) being the squared differences.

Arguments

RPs

A \(T \times N\) numeric matrix, where \(T\) is the number of timepoints and \(N\) is the number of RPs (typically six) to expand.