powered by
Performs nuisance regression. Important note: the data and design matrix must both be centered, or an intercept must be included in the design matrix.
nuisance_regression(Y, design)
The data after nuisance regression.
The \(T \times V\) or \(V \times T\) data.
The \(T \times Q\) matrix of nuisance regressors.
Y <- matrix(rnorm(700), nrow=100) design <- cbind(seq(100), 1) nuisance_regression(Y, design)
Run the code above in your browser using DataLab