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.
Wt loss would be discrete variable (IMHO) assuming that wt loss is calculated in kg.