Entering edit mode
When using the ComBat function for batch correction, what is the difference between the following two specifications of the matrix model :
mod <- model.matrix(~1, dat=colData)
mod <- model.matrix(~ ConditionOfInterest, dat=colData)
When calling
ComBat(dat=expressionMatrix, batch=colData$Batch, mod = mod)