nuisance_regression: Nuisance regression

View source: R/nuisance_regression.R

nuisance_regressionR Documentation

Nuisance regression

Description

Performs nuisance regression. Important note: the data and design matrix must both be centered, or an intercept must be included in the design matrix.

Usage

nuisance_regression(Y, design)

Arguments

Y

The T \times V or V \times T data.

design

The T \times Q matrix of nuisance regressors.

Value

The data after nuisance regression.

Examples

Y <- matrix(rnorm(700), nrow=100)
design <- cbind(seq(100), 1)
nuisance_regression(Y, design)

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