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

Survival docs #742

Merged
merged 9 commits into from
Oct 25, 2023
Merged

Survival docs #742

merged 9 commits into from
Oct 25, 2023

Conversation

GStechschulte
Copy link
Collaborator

@GStechschulte GStechschulte commented Oct 21, 2023

This PR adds a notebook explaining how to perform survival analysis in Bambi using the cat adoption dataset from chapter 11.4 of Richard McElreath's Statistical Rethinking. Sections include:

  • explanation of survival and censoring data (including what right and left censoring is)
  • survival functions and popular estimators (emphasis on Kaplan-Meirer estimator)
  • regression models with survival responses and how the hazard rate and cox proportional hazards facilitate such an analysis
  • explanation of the pm.Censored distribution with and without predictors
  • two Bambi models (with and without predictors)

To do:

  • finish the Regression models with survival responses section
  • add summary section

Although there are a couple "to do" items, this docs example is far enough along I am opening this draft PR for feedback. Thanks! 🐱

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@GStechschulte GStechschulte marked this pull request as ready for review October 23, 2023 07:52
docs/notebooks/survival_model.ipynb Show resolved Hide resolved
docs/notebooks/survival_model.ipynb Show resolved Hide resolved
docs/notebooks/survival_model.ipynb Show resolved Hide resolved
docs/notebooks/survival_model.ipynb Show resolved Hide resolved
docs/notebooks/survival_model.ipynb Show resolved Hide resolved
docs/notebooks/survival_model.ipynb Show resolved Hide resolved
docs/notebooks/survival_model.ipynb Show resolved Hide resolved
docs/notebooks/survival_model.ipynb Show resolved Hide resolved
@tomicapretto
Copy link
Collaborator

As usual this is an amazing tutorial. Feel free to merge after you address the comments (or ping me if you need help!)

@GStechschulte
Copy link
Collaborator Author

As usual this is an amazing tutorial. Feel free to merge after you address the comments (or ping me if you need help!)

Thanks a lot!! Especially for the review. My only question is regarding the noise term (commented above).

@GStechschulte GStechschulte merged commit 64c21d8 into bambinos:main Oct 25, 2023
3 of 4 checks passed
@GStechschulte GStechschulte deleted the survival-docs branch November 17, 2023 08:38
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

Successfully merging this pull request may close these issues.

2 participants