Hi, @FreelanceReinh
Thank you for your suggestion. Hmmm, it's a great idea to deal with multiple time-dependent variables. Please let me reproduce your idea.
First, via the counting process method. Say, we have two time-varying variables named A and B, and there are other fixed variables which is represented in union by U. If there is an individual who was followed for 14 days, for whom the A changed on day 7 from 0 to 1. In addition, the B changed on day 4 from 1 to 0. According to my understanding of your idea, there should be three rows for this individual in the overall table and they are:
row one: A=0, B=1, start=0, stop=4
row two: A=0, B=0, start=4, stop=7
row three A=1, B=0, start=7, stop=14
Therefore, every change in the time-varying variable produces an extra row for the individual, given that the time-varying variables do not change on the same day (i.e., tie).
I have not yet thought about the programming method and if I have ideas about it I would update this post. Again, thank you for your feedback.
Tom
... View more