Hi all. After a thorough search online I can't seem to find a solution to my problem, which is why I'm now asking the experts.
The problem: I'm doing a cox regression in 700 subjects where I want to assess the effect of the dichotomous baseline variable X on the outcome Z. In addition i have another dichotomous variable Y which is not present at baseline for any of the subjects, however some of the subjects gets this condition (Y) during the follow up at different dates, and this variable is known to be connected with Z. Furthermore X is known to sometimes lead to Y, but it isn't certain that X in itself can lead to the outcome Z, and thats what i wanna test.
So the "known" chain of events is X --> Y ---> Z . And I want to test X --> Z. But I still want to include the effect of Y in my model as some of the subjects will follow X-->Y-->Z, and some may not have X from the beginning and still get Y later on and then reach Z. (Y--> Z) And of course then there are also other ways of reaching Z than X Y, but they are not time varying and I can more easily adjust for these.
So i thought - how can I include Y as a time-varying covariate so as not to underestimate the effect of Y but still assess if there is a direct correlation with X and Z.
Hope the question isn't to cryptic - I'll be happy to elaborate on the question.
Thanks in advance. Bjorn
The problem: I'm doing a cox regression in 700 subjects where I want to assess the effect of the dichotomous baseline variable X on the outcome Z. In addition i have another dichotomous variable Y which is not present at baseline for any of the subjects, however some of the subjects gets this condition (Y) during the follow up at different dates, and this variable is known to be connected with Z. Furthermore X is known to sometimes lead to Y, but it isn't certain that X in itself can lead to the outcome Z, and thats what i wanna test.
So the "known" chain of events is X --> Y ---> Z . And I want to test X --> Z. But I still want to include the effect of Y in my model as some of the subjects will follow X-->Y-->Z, and some may not have X from the beginning and still get Y later on and then reach Z. (Y--> Z) And of course then there are also other ways of reaching Z than X Y, but they are not time varying and I can more easily adjust for these.
So i thought - how can I include Y as a time-varying covariate so as not to underestimate the effect of Y but still assess if there is a direct correlation with X and Z.
Hope the question isn't to cryptic - I'll be happy to elaborate on the question.
Thanks in advance. Bjorn
Comment