-
Notifications
You must be signed in to change notification settings - Fork 15
Refactor calculation of survival probabilities for mboost #215
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
Conversation
tests: engine can fit and predict with missings but needs seed then for reproducibility
the PR to mboost to fix this is not yet merged
|
update: I'll make this return a survival probability of 1 for time -Inf and 0 for time Inf |
topepo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the one trivial comment, it looks good
| ret | ||
| } | ||
|
|
||
| survival_curve_to_prob <- function(time, event_times, survival_prob) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this isn't limited to mboost, maybe put it in a more general location.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. It does work more generally but it's only used by mboost. I'll keep it there for now and rethink moving it at the end of the big refactor!
|
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Part of #146
This refactors the calculation of the survival probabilities for mboost models based on their
survFitobjects.This changes behavior for the edge cases of predicting before or after event times. Do you think this is the right behavior? At time Inf it currently returns the survival probability at the last event but I'm inclined to think it should always be 0. Similarly, should we make return a probability of 1 for -Inf? And if so, do we make sure this also happens for other engines?
Created on 2022-09-19 by the reprex package (v2.0.1)