I want to analyze (with "stcox") the overall survival outcome of a prognostic factor (varX), adjusting by a time-varying covariate such as stem cell transplantation. I assume it has to make a difference how long the patient has the transplantation. OS is the censored time for the complete survival while OS1 represents the time from the starting point until the transplant (missing if transplantation is not performed). TPH is 0 unless either an allogeneic (1) or an autologous (2) transplantation are been carried out. I'm trying to use
"stset OS, failure(STATUS==1)
stcox varX, tvc(...varlist...) texp(...exp...)"
syntax but don't know well how to fill the gaps...
Thank you so much for your comments