Performs nuisance regression. The data and design matrix must both be centered, or an intercept must be included in the design matrix!

nuisance_regression(Y, design)

Arguments

Y

The \(T\) by \(V\) or \(V\) by \(T\) data.

design

The \(T\) by \(Q\) matrix of nuisance regressors.

Value

The data after nuisance regression.