Notes on survival and recurrent event analysis, from several different references.
- Generating a smooth estimate of the survival function via the hazard function
- Recurrent models based on Cox regression (WIP)
- Using the lifelines library in python to fit KM curves
- Notes and examples from book "Applied Survival Analysis Using R", by D.F. Moore
- Confidence intervals for conditional survival estimates
- Deriving conditional survival distributions based on the Weibull distribution
- Sampling from arbitrary hazard functions
- Using the Brier score to evaluate predictive ability of a survival model
src
directory: code files.pre-commit-config.yaml
: config for use withpre-commit
. It specifies what hooks to use. Once this file is created, if you runpre-commit install
, the pre-commit tool will populate thepre-commit
file in the./.git/hooks
directory. Helpful references:.flake8
: config for Flake8. Mainly used to specify max-line-length=88, to match Black's defaultrequirements.txt
: python packages usedrenv
directory: files created byrenv
R package to replicate environment. Helpful reference:
- I use
p2j
to convert from .py files to .ipynb files (reference). Unfortunately, this doesn't run the file and create outputs, so I do that manually.