Implement (cause-specific) competing risks#782
Draft
jemus42 wants to merge 3 commits into
Draft
Conversation
Extend survival forests to handle competing risks data where the status variable encodes censoring (0) or one of K event types (1, 2, ..., K). Uses composite sum of squared log-rank statistics across event types for splitting, following Ishwaran et al. (2014). Returns cause-specific CHFs as a list of K matrices and cumulative incidence functions (CIF) via the Aalen-Johansen estimator. Fully backward compatible when K=1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- R/utility.R: prob -> probs in quantile() call - test_interface.R: dependent.variable -> dependent.variable.name - test_ranger.R: $prediction -> $predictions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Update roxygen docs for ranger() and predict.ranger() with competing risks parameters, return values, and examples - Add Ishwaran et al. (2014) reference for cause-specific hazard approach - Add vignettes/competing_risks.Rmd with method description and usage - Add inst/examples/competing_risks_comparison.R (ranger vs rfsrc) - Add knitr/rmarkdown to Suggests and VignetteBuilder to DESCRIPTION Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just an experiment to see how it goes when I point Claude Code at it 🤷🏻♂️