ar_whiten_inplace: AR(p) whitening of data and design matrices

View source: R/RcppExports.R

ar_whiten_inplaceR Documentation

AR(p) whitening of data and design matrices

Description

Applies a causal AR filter defined by phi_coeffs to both Y and X matrices in place.

Usage

ar_whiten_inplace(Y, X, phi_coeffs, exact_first_ar1 = FALSE)

Arguments

Y

Numeric matrix of data (time x voxels)

X

Numeric matrix of design (time x predictors)

phi_coeffs

Numeric vector of AR coefficients (length p)

exact_first_ar1

Logical, apply exact scaling of first sample for AR(1)


bbuchsbaum/fmrireg documentation built on June 10, 2025, 8:18 p.m.