29 September 2021 6 10K Report

Hi all,

I'm analyzing a set of longitudinal data obtained from subjects at regular time intervals following an intervention. I want to look for the effect of time, but I also want to adjust the observed time effect for age and sex of subjects. My initial thought was to run a linear model like this:

lm(Signal ~ SubjectID + Time + Age + Sex)

However, age and sex are both attributes of subjectID, and, therefore, are not independent covariates. Should I rather simplify the model like this:

lm(Signal ~ SubjectID + Time) ?

Any suggestions are much appreciated.

Thank you very much!

More Dmitri Kazmin's questions See All
Similar questions and discussions