meancenter | R Documentation |
Performs batch effect adjustment by centering the variables within batches to have zero mean.
meancenter(x, batch)
x |
matrix. The covariate matrix of the new data. Observations in rows, variables in columns. |
batch |
factor. Batch variable. Each factor level (or 'category') corresponds to one of the batches. For example, if there are four batches, this variable would have four factor levels and observations with the same factor level would belong to the same batch. |
meancenter
returns an object of class meancenter
.
An object of class "meancenter
" is a list containing the following components:
xadj |
matrix of adjusted (training) data |
nbatches |
number of batches |
batch |
batch variable |
Roman Hornung
data(autism) params <- meancenter(x=X, batch=batch)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.