Survival Analysis, Machine Learning, Time To Event Analysis, Stata, Data Science.
time variable Declaring Data to be Survival-Time Data Before we proceed with the survival analysis models, we need to declare the time and failure event (status) variables using stset command. stset time, failure(status == 2) Kaplan-Maier Curve Fitting (Non-Parametric Model) To start with survival