Additive Model for Variable Adjustment in edgeR
0
Entering edit mode
@science555111
Last seen 10 weeks ago

The edgeR vignette talks about additive models when dealing with paired samples (and then also when adjusting for batch effects.) Can we use additive models when adjusting for other variables? Take this example

Samples    Treatment    Sex
Sample_1    Control     M
Sample_2    Control     M
Sample_3    Control     M
Sample_4    Treatment   M
Sample_5    Treatment   M
Sample_6    Treatment   M
Sample_7    Control     F
Sample_8    Control     F
Sample_9    Control     F
Sample_10   Treatment   F
Sample_11   Treatment   F
Sample_12   Treatment   F

If we are only interested in looking at the effect of treatment, would a model matrix like this be appropriate?

model.matrix(~Sex + Treatment) 
edgeR • 111 views
ADD COMMENTlink
1
Entering edit mode
Yunshun Chen • 720
@yunshun-chen-5451
Last seen 5 days ago
Australia

Yes, it looks fine.

ADD COMMENTlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Traffic: 228 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.4