Limma Continuous variable vs categorical variable
1
1
Entering edit mode
8.1 years ago
spurthy111 ▴ 20

Dear all,

I have tried to find the answer from previous posts, but I couldn't find any clear explanation. My question is regarding paired analysis in limma. If I want to compare weight changed before and after a diet, can I use weight a continuous variable?

For instance if 100 individuals go on a diet, we measure their weight before and after the diet. (Here I am assuming that all of them lost weight after diet.) As each person can loose different kgs, I would imagine continuous variable is more appropriate, rather than a categorical variable .

This is my design matirx for paired analysis comparing same individual before and after diet: design <- model.matrix(~Subject+weight) # here Subject is the person ID fit <- lmFit(input,design) fit2 <- eBayes(fit) result <- topTable(fit2,coef="weight",adjust.method="bonferroni")

I was wondering if this analysis is any different from the categorical analysis, where all the individuals are marked heavy (before diet ) and lean (after diet). For which the design would be design <- model.matrix(~Subject+status) # here status is heavy or lean.

Thanks for your help in advance.

Regards, Spurthy.

R • 6.0k views
ADD COMMENT
0
Entering edit mode

Wt loss would be discrete variable (IMHO) assuming that wt loss is calculated in kg.

ADD REPLY
2
Entering edit mode
8.1 years ago

Yes, this is a continuous variable in the model, though in practice you might get clearer results with the categorical "status" method (give them both a try and see which seems to be more informative).

The only thing to keep in mind with continuous variables is that the coefficients are in terms of kg or whatever else you measure in. So if someone dropped 10kg and had a 2x change in gene expression then the per-kg fold change would be...rather less dramatic. Keep that in mind when looking at the results.

ADD COMMENT
0
Entering edit mode

Thanks a lot Devon! I have tried both continuous and categorical "status" methods. Limma gives better results for continuous variable method. And thanks for reminding about the coefficients.

ADD REPLY

Login before adding your answer.

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