I made a coursera course abouth survival analysis. It uses a heart failure dataset for the examples. (That same dataset can be found on Kaggle https://www.kaggle.com/jackleenrasmybareh/heart-failure)
After finishing the course I have been reading about time dependent variables. The previous dataset does not use them, so I would like to simulate that one of these variables, for example arrhythmias is a time dependent variable.
I built a custom function to get that, simulating the value of the faked variable with a certain inclanation depending on the time-to-event to make that variable statistically significat. The problem I am facing is that proportional hazards assumption is not being satisfied.
How could I make the faked data to satisfy the proportional hazards assumption and keep my variable statistically significat?