blComBat | R Documentation |
Global ComBat followed by within-block ComBat
blComBat( x, bat, mod = NULL, blocks = dimnames(x)[[1]], eb = TRUE, to.corr = TRUE, out.pd = FALSE, fisher = TRUE )
x |
p x p x n covariance or correlation matrices where p is the number of ROIs and n is the number of subjects. |
bat |
Factor (or object coercible by as.factor to a factor) of length n designating batch IDs. |
mod |
Optional design matrix of covariates to preserve, usually from the output of model.matrix. |
blocks |
Blocks indicating submatrices that are harmonized in the second-stage ComBat. Defaults to input dimension names. |
eb |
If 'TRUE“, uses ComBat model with empirical Bayes for mean and variance harmonization. |
to.corr |
If |
out.pd |
Whether input should be forced to be positive definite using
nearPD. This step is unnecessary for many downstream
network analyses so defaults to |
fisher |
Whether to Fisher-transform the off-diagonal elements before
applying CovBat, highly recommended that this be set to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.