I have counts data for 560 immune genes and I am trying to statistically analyse differences in these counts between Rh- and Rh+ individuals.
In my analysis sex and age are confounding factors. To correct for sex I split the group into males and females and looked at Rh+/- response in each separately through unpaired t tests in R. This gave me a p-value for each gene.
However, as age is also a confounding factor I need to create a non linear regression model to correct for age.
Can anyone advise me on how I go about doing this?