Paired analysis with sex and age as covariates for SVA
1
0
Entering edit mode
2.6 years ago
Curious_Gene ▴ 10

Is it possible to add covariates such as age and sex as adjustment variables when building a model matrix for a paired subject dataset during surrogate variable analysis (SVA) and supervised normalization (SNM)? The below code throws an error, most likely because the age, sex, and subject IDs (since they are paired samples) become linearly correlated:

mod1 <- model.matrix(~age + sex + subjectID + condition, 
                     data = colData)
mod0 <- model.matrix(~1, data = colData)

Appreciate any help!

SNM paired SVA expression • 813 views
ADD COMMENT
3
Entering edit mode
2.6 years ago
ATpoint 89k

In a paired analysis the pairing compensates/adjusts for every covariate/attribute that can describe the subject, including age and sex. Hence and and sex are nested with the subject. You can drop age and sex.

ADD COMMENT

Login before adding your answer.

Traffic: 3895 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