expand_RPs: Expand realignment parameters (RPs)

View source: R/expand_RPs.R

expand_RPsR Documentation

Expand realignment parameters (RPs)

Description

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

Usage

expand_RPs(RPs)

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.

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.


fMRItools documentation built on April 12, 2025, 1:32 a.m.