I am doing a study on a disease. I have done KM-plot, and cox analysis. However I can not figure out how i can calculate the median survival adjusted for age, gender and other covariates. This is interessting because I have four different timeperiods id like to compare. Do anyone know how and if it can be done in R?
The variables i have are:
time_onset_death # Time from symptom onset to death, if not dead, end is set to end of study Dead # Is the patient dead? group # 1,2,3 or 4 (by time period) What i want to today is calculate the median survival for the four groups adjusted for covariates (age and gender).
I not sure what function to use? I am thinking a cox function, but I can only manage to get hazards.