Hi Asaf,
Thank you very much. One step further, actually I am not interested how DNA methylation levels respond to age, can I simplify the model and ignore age splines as:
design = model.matrix(~ sex + sex:V1)
Thank you
Hi all,
I am trying to figure out signals from DNA methylation for a continuous variable at multiple groups. We have mice samples at 4 time points in both sexes, and we are testing if DNA methylation change with V1 using limma
I used the following design matrix and added duplicateCorrelation for random effect.
> X = ns(time_point, df = 3)
> design = model.matrix(~ V1*sex + X)
I am asking the questions:
Based on the questions, does this design make any sense?
The element V1 will give you the overall effect of V1. V1:Sex interaction will answer the question how V1 is different between males and females. If V1 has an effect you can then see how V1:sex is behaving on that gene and conclude how it's affecting males and females differently.
Hi Asaf,
Thank you very much. One step further, actually I am not interested how DNA methylation levels respond to age, can I simplify the model and ignore age splines as:
design = model.matrix(~ sex + sex:V1)
Thank you
It doesn't matter if you care about this information but rather if the age has an influence. If it does then you will want to put this in your model.
Log in to answer this question.