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

Support for survival functions #79

Closed
ipa opened this issue Jul 1, 2022 · 1 comment
Closed

Support for survival functions #79

ipa opened this issue Jul 1, 2022 · 1 comment

Comments

@ipa
Copy link

ipa commented Jul 1, 2022

This is related to: bambinos/bambi#541

To fit a survival function with censored data a response consisting of two components is required. One component depicting the time-to-event and one component depicting the censorship/event status.

Proposing similar to the Surv function in R (https://www.rdocumentation.org/packages/survival/versions/3.3-1/topics/Surv).

Surv(time, event)
event: 0 no event / right censored, 1 event

Propose to implement this as transformation. The eval() method would then simply return a 2xn matrix with time in the first column and event status in the second.

@tomicapretto
Copy link
Collaborator

I'm closing this since bambinos/bambi#581 as well. Thanks again!

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

2 participants