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

estimate censoring probabilities #855

Merged
merged 14 commits into from Feb 14, 2023
Merged

estimate censoring probabilities #855

merged 14 commits into from Feb 14, 2023

Conversation

topepo
Copy link
Member

@topepo topepo commented Jan 12, 2023

For censored regression models, fit a KM curve with the status field reversed.

These calculations may be used to measure model performance.

Unit tests will be in extratests.

@topepo topepo marked this pull request as ready for review January 14, 2023 15:16
@topepo topepo requested a review from hfrick January 17, 2023 15:12
R/fit_helpers.R Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
R/fit_helpers.R Outdated Show resolved Hide resolved
R/fit_helpers.R Outdated Show resolved Hide resolved
R/fit_helpers.R Outdated Show resolved Hide resolved
topepo added a commit to tidymodels/extratests that referenced this pull request Jan 20, 2023
@topepo
Copy link
Member Author

topepo commented Jan 20, 2023

I added more elements to the object, made a constructor, added classes, and made print()/predict() methods.

@hfrick Can you give these changes a look? Most of the changes are in 2126975

It's not completely future-proof but should give us a lot of latitude if we decide to extend this for informative censoring.

Unit tests in tidymodels/extratests#67 will be merged after this is finalized.

R/censoring_probs.R Outdated Show resolved Hide resolved
R/censoring_probs.R Outdated Show resolved Hide resolved
R/censoring_probs.R Outdated Show resolved Hide resolved
@topepo topepo merged commit 9060711 into main Feb 14, 2023
@topepo topepo deleted the censor-probs branch February 14, 2023 20:55
@github-actions
Copy link

github-actions bot commented Mar 4, 2023

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.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants