For a customer churn analysis , i am building a time varying cox model in Python (available under lifelines package) to predict survival probabilities. The model object CoxTimeVaryingFitter() currently does not support or include functions to predict survival probability directly.
On the contrary, they have baseline_cumulative_hazard_ that shows baselime cumulative hazard across tenure and predict_partial_hazard() to predict partial hazard rate $\exp\{(\mathbf{x}−\overline{\mathbf{x}})^T\mathbf{β}\}$.
Can anyone advise me on how i can use these two outputs from model object to calculate survival rate for all the customers.
Does this the below approach makes sense?
$$S(t) = \{\exp(-H(t))\}^{exp(\mathbf{\beta}^T\mathbf{x})}$$
where $H(t)$ = baseline cumulative hazard and $\mathbf{\beta}$ = coefficient and $\mathbf{x}$ = co variate
If so , does this mean , i have to compute survival rate for all customers across each tenures based on baseline and covariate value?
Thanks