mean_centering: mean_centering

Description Usage Arguments Value Author(s) See Also Examples

Description

Batch effects are removed using the means of the batches.

Usage

1

Arguments

Y

A matrix with n rows and g columns, where n is the number of objects and g is the number of variables. In the case of gene expression data, columns correspond to genes (probe sets) and rows to samples.

b

A vector of class factor with the element in position i (i=1,…,n) representing the batch from which observation i belongs to.

Value

A matrix of adjusted data with n rows and g columns.

Author(s)

Marco Giordan

See Also

ber, ber_bg, combat_np, combat_p, standardization

Examples

1
2
3
Y<-matrix(rnorm(6000),nrow=12)
batch<-rep(gl(2,3,labels=c("Batch1","Batch2")),2)
YEadj<-mean_centering(Y,batch)


Search within the ber package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.