I am looking to identify differential gene expression with age. I would like to do this with a linear mixed model with specifying the age as continuous covariate. The expression of the genes are from different tissues. Tissue acts as a fixed effect and individuals as a random effect.
The imported dataset contains age as a string with a values as a range. For eg: 20-29 years. I tried to use the mean of upper and lower limits as the value for the age in a num class. When I extract the p-value for Age after doing ANOVA, it is not the same as I want it to be from a previous reported study. I am not sure if I can use a num class or is there any other way of specifying a continuous covariate in R.
Thank you