Skip to content

Commit

Permalink
Add survival analysis example (#38)
Browse files Browse the repository at this point in the history
* Add survival analysis example

* Update docs/examples/example_survival.ipynb

Co-authored-by: Kevin Klein <7267523+kklein@users.noreply.github.com>

* Update docs/examples/example_survival.ipynb

Co-authored-by: Kevin Klein <7267523+kklein@users.noreply.github.com>

* Update docs/examples/example_survival.ipynb

Co-authored-by: Kevin Klein <7267523+kklein@users.noreply.github.com>

* Add plot text

* Fix glossary reference

* Add week units

* Use smaller trees and share bins

* Fix mypy errors

* Update docs/examples/example_survival.ipynb

Co-authored-by: AronPapQC <113583019+AronPapQC@users.noreply.github.com>

* Add censoring weights

* Add zero weight for censored

* More general censored column check

* Add weight clipping and comments

---------

Co-authored-by: Kevin Klein <7267523+kklein@users.noreply.github.com>
Co-authored-by: AronPapQC <113583019+AronPapQC@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 23, 2024
1 parent 07d5fab commit 851c1ca
Show file tree
Hide file tree
Showing 6 changed files with 858 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ under MIT License.
The code to build the data set in ``download_twins.py'' is adapted from
https://github.com/py-why/dowhy/blob/2c4734867cf87b5cf578cbf85a8cc4eaa8cfa802/docs/source/example_notebooks/dowhy_twins_example.ipynb,
under MIT License.

## Rossi
This data set is taken from https://github.com/CamDavidsonPilon/lifelines/blob/master/lifelines/datasets/rossi.csv under MIT License.
Loading

0 comments on commit 851c1ca

Please sign in to comment.