Hello,
I am analysing Affy microarray data performed on human samples, in which the gene expression were measured before (C) and after (T) treatment. And these samples have been classified into three catalogues. The list as:
Sample Treatment Dnonor Status
Ac C A 1
At T A 1
Bc C B 2
Bt T B 2
Cc C C 3
Ct T C 3
The final goal is to find out the differences among status #1,2 and 3. And, actually, the treatment C can be considered as background, so I want to use the T minus C, then to perform the comparisons btw status 1 2 3.
Two parameters and with paired samples, I wonder how to design the matrix. Thanks a lot.
Best wishes,
Joe
Thanks, Aaron. Actually, I have 3 donor for each status.
My way to see the data as below. I'm trying to use the duplicatedCorrelation() to match the paired samples. is that correct?
Treat1 <- factor(paste(target$status,target$Treatment,sep = "."))
design1 <- model.matrix(~ 0 + Treat1)
colnames(design1) <- levels(Treat1)
corfit1 <- duplicateCorrelation(selNormEset,design1,block = target$Donor)
fit1 <- lmFit(selNormEset,design1,block = target$Donor,correlation = corfit1$consensus)
Yes, that's better. Multiple donors for each status level will give you the residual d.f. you need to do that comparison.