I have a global dataset (with over 170 countries) and most of the countries in the data experienced the event multiple times. I use extended Cox models to analyze the data (so called "PWP"/conditional model) model. However, I am not sure how to calculate median survival time in R?
Also, I wonder if it is possible to calculate median survival time to the first, second,.. x event? I have no idea how to do it and the standard books on survival/event history analysis are not talking about these issues. Grateful for any suggestions.