![logo](http://i.imgur.com/EOowdSD.png)
[![Latest Version](https://pypip.in/v/lifelines/badge.png)](https://pypi.python.org/pypi/lifelines/)
[![Build Status](https://travis-ci.org/CamDavidsonPilon/lifelines.svg?branch=master)](https://travis-ci.org/CamDavidsonPilon/lifelines)
[![Coverage Status](https://coveralls.io/repos/CamDavidsonPilon/lifelines/badge.svg?branch=master)](https://coveralls.io/r/CamDavidsonPilon/lifelines?branch=master)
[What is survival analysis and why should I learn it?](http://lifelines.readthedocs.org/en/latest/Survival%20Analysis%20intro.html)
Survival analysis was originally developed and applied heavily by the actuarial and medical community. Its purpose was to answer *why do events occur now versus later* under uncertainty (where *events* might refer to deaths, disease remission, etc.). This is great for researchers who are interested in measuring lifetimes: they can answer questions like *what factors might influence deaths?*
But outside of medicine and actuarial science, there are many other interesting and exciting applications of this
lesser-known technique, for example:
- SaaS providers are interested in measuring customer lifetimes, or time to first behaviours
- sociologists are interested in measuring political parties' lifetimes, or relationships, or marriages
- analysing [Godwin's law](https://raw.githubusercontent.com/lukashalim/GODWIN/master/Kaplan-Meier-Godwin.png) in Reddit comments
- A/B tests to determine how long it takes different groups to perform an action.
*lifelines* is a pure Python implementation of the best parts of survival analysis. We'd love to hear if you are using *lifelines*, please leave an Issue and let us know your thoughts on the library.
### Installation:
#### Dependencies:
The usual Python data stack: NumPy, SciPy, Pandas (a modern version please). Matplotlib is optional (as of 0.6.0+).
#### Installing
You can install *lifelines* using
pip install lifelines
Or getting the bleeding edge version with:
pip install --upgrade --no-deps git+https://github.com/CamDavidsonPilon/lifelines.git
from the command line.
##### Installation Issues?
See the common [problems/solutions for installing lifelines](https://github.com/CamDavidsonPilon/lifelines/issues?utf8=%E2%9C%93&q=label%3Ainstallation+).
#### Running the tests
You can optionally run the test suite after install with
python -m lifelines.tests
### *lifelines* Documentation and an Intro to Survival Analysis
If you are new to survival analysis, wondering why it is useful, or are interested in *lifelines* examples and syntax,
please check out the [Documentation and Tutorials page](http://lifelines.readthedocs.org/en/latest/index.html)
### Citing lifelines
- Davidson-Pilon, C., Lifelines, (2015), Github repository, https://github.com/CamDavidsonPilon/lifelines
or with bibTex here:
```
@misc{Lifelines,
author = {C., Davidson-Pilon},
title = {Lifelines},
year = {2015},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/camdavidsonpilon/lifelines}},
commit = {63fc4f0ada0c61248957a478f3544efb4eeb2ccf}
}
```
![lifelines](http://i.imgur.com/QXW71zA.png)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共63个文件
py:27个
csv:18个
ipynb:4个
资源分类:Python库 所属语言:Python 资源全名:lifelines-0.7.1.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
lifelines-0.7.1.0.tar.gz (63个子文件)
lifelines-0.7.1.0
MANIFEST.in 188B
PKG-INFO 4KB
README.txt 3KB
SaaS Metrics - LTV.ipynb 1.09MB
lifelines
statistics.py 9KB
_statistics.so 31KB
utils.py 34KB
weibull_fitter.py 8KB
nelson_aalen_fitter.py 7KB
coxph_fitter.py 18KB
exponential_fitter.py 4KB
tests
test_statistics.py 7KB
test_utils.py 14KB
conftest.py 205B
test_weibull.py 678B
test_generate_datasets.py 1KB
test_estimation.py 44KB
test_plotting.py 7KB
__main__.py 157B
__init__.py 0B
_utils.so 32KB
_base_fitter.py 4KB
generate_datasets.py 9KB
plotting.py 14KB
.DS_Store 12KB
estimation.py 498B
__init__.py 444B
_utils
_cindex.so 32KB
breslow_fleming_harrington_fitter.py 3KB
aalen_additive_fitter.py 16KB
kaplan_meier_fitter.py 5KB
version.py 65B
progress_bar.py 2KB
datasets
canadian_senators.csv 159KB
CuZn-LeftCensoredDataset.csv 2KB
regression.csv 10KB
data.tsv 2KB
larynx.csv 1KB
The Gehan Survival Data.ipynb 122KB
g3.csv 580B
rhc_processed_categorical_CLEANED.csv 1.32MB
holly_molly_polly.tsv 180B
churn.csv 323KB
psychiatric_patients.csv 269B
waltons_dataset.csv 2KB
anderson.csv 580B
__init__.py 10KB
Divorces Rates.ipynb 128KB
lung.csv 9KB
static_test.csv 100B
kidney_transplant.csv 13KB
panel_test.csv 306B
recur.csv 24KB
gehan.dat 276B
ER_survival_3random.csv 9KB
dd.csv 262KB
divorce.dat 194KB
rossi.csv 8KB
Untitled0.ipynb 2KB
LICENSE 1KB
setup.cfg 51B
setup.py 1KB
README.md 3KB
共 63 条
- 1
资源评论
- jianminli22022-06-26用户下载后在一定时间内未进行评价,系统默认好评。
- 2301_774810552024-01-15发现一个宝藏资源,赶紧冲冲冲!支持大佬~
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功