Question: The correct specification of the model matrix to ComBat
0
8 weeks ago by
Samuel0
Samuel0 wrote:

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)

sva combat • 70 views