python中的生存分析
survive的Python项目详细描述
survive是构建在NumPy之上的python 3包 以及pandas为 生存期、生存期和事件数据的分析。
网址:https://survive-python.readthedocs.io
安装
最新版本的survive可以在从 GitHub。
git clone https://github.com/artemmavrin/survive.git
cd survive
make install
而且,生存是靠 Python Package Index (PyPI),所以最近 它的版本可以与pip一起安装 工具。
python -m pip install survive
案例研究
- Leukemia remission times
- 一个小数据集(共42个观测值),分成两组 一个是正确的审查,另一个没有。
- Channing House data
- 一个稍微大一点的数据集(总共462个观测值),分为两组 右删和左截都是。
API参考
上提供了Survive的完整API引用 Read the Docs。