Skip to main content

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

Project description

lifelines
=========

`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
measure political parties lifetimes, or relationships, or marriages -
Businesses are interested in what variables affect lifetime value

*lifelines* is a pure Python implementation of the best parts of
survival analysis. We'd love to hear if you are using *lifelines*,
please ping me at [@cmrn\_dp](https://twitter.com/Cmrn\_DP) and let me
know your thoughts on the library.

Installation:
-------------

Dependencies:
^^^^^^^^^^^^^

The usual Python data stack: Numpy, Scipy, Pandas (a modern version
please), Matplotlib

Installing
^^^^^^^^^^

You can install *lifelines* using

::

pip install lifelines

Or getting the bleeding edge version with:

::

pip install git+https://github.com/CamDavidsonPilon/lifelines.git

or upgrade with

::

pip install --upgrade git+https://github.com/CamDavidsonPilon/lifelines.git

from the command line.

*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)


License
-------

The Feedback MIT License (FMIT)

Copyright (c) 2013, Cameron Davidson-Pilon

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

1. The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

2. Person obtaining a copy must return feedback to the authors.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

*lifelines* logo designed by Pulse designed by TNS from the Noun Project

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

lifelines-0.6.0.0.tar.gz (1.6 MB view details)

Uploaded Source

Built Distributions

lifelines-0.6.0.0-cp34-none-win_amd64.whl (370.2 kB view details)

Uploaded CPython 3.4 Windows x86-64

lifelines-0.6.0.0-cp34-none-win32.whl (373.3 kB view details)

Uploaded CPython 3.4 Windows x86

lifelines-0.6.0.0-cp33-none-win_amd64.whl (370.2 kB view details)

Uploaded CPython 3.3 Windows x86-64

lifelines-0.6.0.0-cp33-none-win32.whl (373.3 kB view details)

Uploaded CPython 3.3 Windows x86

lifelines-0.6.0.0-cp27-none-win_amd64.whl (370.2 kB view details)

Uploaded CPython 2.7 Windows x86-64

lifelines-0.6.0.0-cp27-none-win32.whl (373.3 kB view details)

Uploaded CPython 2.7 Windows x86

File details

Details for the file lifelines-0.6.0.0.tar.gz.

File metadata

File hashes

Hashes for lifelines-0.6.0.0.tar.gz
Algorithm Hash digest
SHA256 2a8cac2ca13655627ccef12cb769906019c02c418e27cf105e63d2d3b424ee8c
MD5 95e276a3012ca4aedf97cedc0eae5bdf
BLAKE2b-256 4cbbb7a0f696de1e4085fc1ad845075c3879b10c533a53343fb256da9a3509d7

See more details on using hashes here.

File details

Details for the file lifelines-0.6.0.0-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for lifelines-0.6.0.0-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 d4112aa81dacb208c0e685c4e56e980d240654b6073d612f63bf578dc706cfcb
MD5 354446346b4214e1a030fa3d326633e9
BLAKE2b-256 a5df3235f3870427fdd9952091aa5794ae223a193161d0c1e0bd937016ce5343

See more details on using hashes here.

File details

Details for the file lifelines-0.6.0.0-cp34-none-win32.whl.

File metadata

File hashes

Hashes for lifelines-0.6.0.0-cp34-none-win32.whl
Algorithm Hash digest
SHA256 4e338e538fca8da9c3f797a121253518a07bc2c6c0b71b280940ce37d47931c7
MD5 a1e0b6121ffbedc6457d76bcb376ef21
BLAKE2b-256 a77feae83c3cc93b01a9ed2ac17f3d1361df7c864016b26f17599e1bd7ce548f

See more details on using hashes here.

File details

Details for the file lifelines-0.6.0.0-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for lifelines-0.6.0.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 7b72ef475c3ec3976523a5635a859f2c79fa051fcc6e44a050b3887f9c4cf737
MD5 6070fdd72002fb7c9270b70aa78dbb6a
BLAKE2b-256 6237e8ed3ff2218936e33b801175052dbd5278ae280b1b1ce1b3517cbe4cfd25

See more details on using hashes here.

File details

Details for the file lifelines-0.6.0.0-cp33-none-win32.whl.

File metadata

File hashes

Hashes for lifelines-0.6.0.0-cp33-none-win32.whl
Algorithm Hash digest
SHA256 fe20e18b556678e20d2c8097b85ad680f371210278d8cba2585e6ecff78b8a43
MD5 2825f3104f71128ae3929965e15e7083
BLAKE2b-256 cdc7fa610116cb4fe6349f3c08a34a4c9541fea92d2e7bfb02994a150b5f862a

See more details on using hashes here.

File details

Details for the file lifelines-0.6.0.0-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for lifelines-0.6.0.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 86d51de6ac7f979933f52c68a1f24a9086609e0b4a859f29c51e6ce0d0863996
MD5 7d13c947d7323e5335d396d98a6b7967
BLAKE2b-256 1fb01e6f7c56653c7a3e263835b25357961bbb81d4176021e9e811e6b54c49bb

See more details on using hashes here.

File details

Details for the file lifelines-0.6.0.0-cp27-none-win32.whl.

File metadata

File hashes

Hashes for lifelines-0.6.0.0-cp27-none-win32.whl
Algorithm Hash digest
SHA256 445f9fa570a092a5d3647b83251daef9cda2edda6ea4027daa2cfbdce29f9605
MD5 259ad31a8ff6a5bfcb46fa4266d19499
BLAKE2b-256 2c99d0a56d75e6b80e170a0a3b0efecd910cdb869e2f3e2dcbf37667bf838d52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page