Open hrafnfaedhir opened 8 months ago
Unfortunately, this is not the functionality of this package. SurvSHAP(t) returns the contributions of each covariate to the survival function prediction obtained by using another model. The fact is that summing these attributions gives the value of the survival function, but the prediction itself is from external model.
You can find some machine learning survival analysis here, for example: https://scikit-survival.readthedocs.io/en/stable/index.html.
I apologize if I am extrapolating beyond what your package was intended to do. I understand that a large portion of survSHAP(t) is providing explanatory variable analysis. Your paper indicates that SurvSHAP(t) can return an individual's unique survival function given their covariates, distinct from the assumptions in a Cox model. Can your Survival Function be used to calculate an Expected Future Lifetime? https://en.wikipedia.org/wiki/Survival_analysis#Quantities_derived_from_the_survival_distribution