The meaning of interaction terms in design matrix in edgeR User's Guide on page 38
1
0
Entering edit mode
2002ymx02 • 0
@2002ymx02-21132
Last seen 4.6 years ago
Germany, Dresden, TUD

Hi Prof. Gordon Smyth,

I have a question about the meaning of interaction terms in design matrix on the page 38 in the edgeR User's Guide. In line 19, the guide say: "The last two coefficients give the DrugvsPlacebo.1h and DrugvsPlacebo.2h contrasts". But my understanding is that the last two coefficients ( [5] "TreatDrug:Time1h", [6] "TreatDrug:Time2h" in model.matrix(~Treat * Time, data=targets)) could be the difference of difference, which means the effects (Drug.1h-placbo.1h)-(Drug.0h-placebo.0h) and (Drug.2h-placbo.2h)-(Drug.0h-placebo.0h). (Drug.0h-placebo.0h) is the reference level for interaction. Is my understanding right?

Best, Mingxing Yang

edger • 580 views
ADD COMMENT
0
Entering edit mode
@gordon-smyth
Last seen 14 hours ago
WEHI, Melbourne, Australia

I appreciate your reading the edgeR User's Guide so carefully.

Yes, your understanding is correct but so is the edgeR User's Guide.

The DrugvsPlacebo.1h and DrugvsPlacebo.2h contrasts are defined on page 36 of the Guide, and they are exactly equivalent to what you say they should be.

ADD COMMENT
0
Entering edit mode

Thank you for your time, Gordon. Actually, my understanding of interaction terms [5] "TreatDrug:Time1h", [6] "TreatDrug:Time2h" are (Drug.1h-placbo.1h)-(Drug.0h-placebo.0h) and (Drug.2h-placbo.2h)-(Drug.0h-placebo.0h) respectively, which are different from the definition on page 36 of the Guide: DrugvsPlacebo.1h = (Drug.1h-Drug.0h)-(Placebo.1h-Placebo.0h), DrugvsPlacebo.2h = (Drug.2h-Drug.0h)-(Placebo.2h-Placebo.0h)

That is why I asked this question. Because this is very confusing and only a few people understand this, that is why I only asked you this question.

Best, Mingxing Yang

ADD REPLY
0
Entering edit mode

Simple arithmetic shows you that the two expressions are exactly the same:

(Drug.1h - Placbo.1h) - (Drug.0h - Placebo.0h)

= Drug.1h - Placebo.1h - Drug.0h + Placebo.0h

= (Drug.1h - Drug.0h) - (Placebo.1h - Placebo.0h)

ADD REPLY
0
Entering edit mode

Many thank, Gordon. Yes, they are the same.

ADD REPLY

Login before adding your answer.

Traffic: 619 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6