Subtract estimated nuisance ICs from data matrix. If the number of nuisance ICs is not provided, will estimate using PESEL (the nuisance ICs are a rotation of the nuisance PCs).
rm_nuisIC(
BOLD,
DR = NULL,
prior_mean = NULL,
Q2 = NULL,
Q2_max = NULL,
checkRowCenter = TRUE,
verbose = FALSE,
return_Q2 = FALSE
)
The \(V\) by \(T\) data with the estimated nuisance ICs
subtracted from it. If return_Q2
, a list of length two: the second
entry will be Q2
.
the row-centered \(V\) by \(T\) data
We need an initial estimate of the brain networks, so
that we can avoid removing them during removal of the estimated noise ICs.
Provide either DR
if dual regression has already been calculated, or
prior_mean
(in this context, equivalent to a template result) if it
hasn't. Exactly one must be provided.
The number of nuisance ICs. If NULL
(default) will estimate
using PESEL.
If Q2
is NULL
, PESEL's estimate will be less than
or equal to Q2_max
. If Q2_max
is NULL
(default), do not
limit PESEL's estimate.
Check row means, and raise an error if they are
nonzero? Default: TRUE
.
If TRUE
, display progress updates.
Return (estimated) Q2
too? Default: FALSE
.