# Cox regression - proportional hazards - time to event variable in database with one line per individual per year

I have a question regarding my Time to Event variable. Since I am working with time-varying variables (which can change every year), I use a data structure with one line per individual per year. there are only as many rows as # of years until the event. Each year is indicated whether the event occurs or not. The event can only occur once. Can I work with a modified time-to-event variable here? My idea was to measure the duration anew each year to avoid proportionality problems. That means the time to event is always equal to 1. In fact, I only measure the survival per year. In my analyses, I only want to determine for whom an event occurs and for whom it does not. The advantage of using such an artificial time-to-event variable is that the proportionality assumption can be circumvented in this way. Does this trick seem permissible to you? Thanks a lot... any feedback would be highly appreciated.

EDIT (I thank the commentator for the helpful questions): The events are only recorded as once per year. There is no particular time during the year that the values of time-varying variables change. I only want to know if an event occurred or not. How long the individual survived is basically not important to me. Whether the event happens sooner or later is not important to me. I only want to know which variables have an influence on the occurrence of the event. time since a change in a time-varying variable is more important to me. The effect of certain variables changes over time. That's why i came up with that artificial time to event variable. The survival time / time-to-event is always recalculated after the change of the time-dependent variables.

• Are the events also only recorded as once per year, or is there a more precise record of event times? Is there some particular time during the year that the values of time-varying variables change? Putting aside any possible issues with "proportionality," which time-to-event do you really want to model: time since entering the study or time since a change in a time-varying variable? Or do you only want to know if an event changed at some time during a particular year, discarding information about prior years? Please edit your question to add that information, as comments can be lost.
– EdM
May 17 at 12:46

The question you need to resolve is how to handle time, which should be included in the model as a predictor if for no other reason than to make sure that you don't have an unexpected relationship between time and event probability. Simplest might be to set time = 0 to the study-entry year for each individual. If you think that time since a change in a particular covariate is important, you could consider re-setting time = 0 at each such change. Or if you think that calendar year is important (for example, if the event might have to do with underlying economic conditions), then use the earliest calendar year as the time = 0 reference. You can evaluate multiple such times if you wish; for example, you could include both calendar year and an individual's time since study entry if that makes sense. Those decisions need to be based on your knowledge of the subject matter and the goal of your study.