Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Survival analysis in Python, including Kaplan Meier, Nelson Aalen and regression

Project Description

What is survival analysis and why should I learn it? 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 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.

Running the tests

You can optionally run the test suite after install with

py.test

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

Contacting

There is a Gitter channel available. The main author, Cam Davidson-Pilon, is also available for contact on email and twitter.

Citing lifelines

You can use this badge below to generate a DOI and reference text for the lastest releated version of lifelines:

Release History

Release History

This version
History Node

0.11.2

History Node

0.11.1

History Node

0.11.0

History Node

0.10.1

History Node

0.10.0

History Node

0.9.4

History Node

0.9.3.2

History Node

0.9.3.1

History Node

0.9.2

History Node

0.9.1.0

History Node

0.9.0.0

History Node

0.8.1.0

History Node

0.8.0.2

History Node

0.8.0.1

History Node

0.8.0.0

History Node

0.7.1.0

History Node

0.7.0.0

History Node

0.6.1.0

History Node

0.6.0.0

History Node

0.5.1.0

History Node

0.5.0.0

History Node

0.4.4.0

History Node

0.4.3.1

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1.1

History Node

0.4.0.0

History Node

0.3.2.3

History Node

0.3.2.2

History Node

0.3.2.1

History Node

0.3.2.0.2

History Node

0.3.2.0

History Node

0.3.1.5

History Node

0.3.1.2

History Node

0.3.1.0

History Node

0.3.0.0

History Node

0.2.3.0.7

History Node

0.2.3.0.6

History Node

0.2.3.0.5

History Node

0.2.3.0.4

History Node

0.2.3.0.3

History Node

0.2.3.0.2

History Node

0.2.3.0.1

History Node

0.2.3.0

History Node

0.2.2.12

History Node

0.2.2.11

History Node

0.2.2.10

History Node

0.2.2.9

History Node

0.2.2.8

History Node

0.2.2.7

History Node

0.2.2.6

History Node

0.2.2.5

History Node

0.2.2.4

History Node

0.2.2.3

History Node

0.2.2.2

History Node

0.2.1.1

History Node

0.2.1

History Node

0.2.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lifelines-0.11.2-py2.py3-none-any.whl (190.3 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Aug 5, 2017
lifelines-0.11.2.tar.gz (191.0 kB) Copy SHA256 Checksum SHA256 Source Aug 5, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting