Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SHAP value for survival analysis and time varying covariates #99

Open
ZYINGTEVA23 opened this issue Jan 14, 2025 · 0 comments
Open

Comments

@ZYINGTEVA23
Copy link

For the current SHAP value for the survival analysis, the outcome is with the right censoring format and covariates measured at one time point for each patient; And I am wondering if the SHAP value for the survival analysis can be generated with time-varying covariates for the same ID?
For example, In the coxph function, if the covariate only measured at one timepoint before the event, the surv object will be specified with Surv(time, status); With time-varying covariates, one id might have several rows (1...j) and the Surv object will be specified in the format like Surv(start, stop, status) with the time-varying covariates in the counting process format. The status will always be 0 in 1st to j-1row and will be 0/1 in the jth row.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant