Hello, I am trying to generate phenotypes with Time to Events for the survival analysis I want to conduct. Did anyone generate these before if so Please do let me know how to do it. Thank you so much for the help..
The authors added an event status indicator at exit and a follow-up time variable. Using these, they can run a Cox model to associate overall accelerometer activity with risk of incident cardiovascular disease.
Comments
3 comments
For time to event analysis, my idea is to get inspiration from the following repository:
https://github.com/OxWearables/rap_wearables
I really like this notebook https://github.com/OxWearables/rap_wearables/blob/main/4_Disease_Association_Analysis.ipynb, especially the paragraph "Associations with risk of incident cardiovascular disease".
The authors added an event status indicator at exit and a follow-up time variable. Using these, they can run a Cox model to associate overall accelerometer activity with risk of incident cardiovascular disease.
https://github.com/OxWearables/rap_wearables/blob/main/1_Extract_Data.ipynb
https://github.com/OxWearables/rap_wearables/blob/main/2_Further_Prep_in_R.ipynb
Please sign in to leave a comment.