lifelines

lifelines: survival analysis in Python - Published in JOSS (2019)

https://github.com/camdavidsonpilon/lifelines

Science Score: 100.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in JOSS metadata
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    7 of 120 committers (5.8%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

cox-regression data-science maximum-likelihood python reliability-analysis statistics survival-analysis

Keywords from Contributors

fuzzing property-based-testing closember optimisation astronomy eeg data-mining

Scientific Fields

Economics Social Sciences - 37% confidence
Last synced: 4 months ago · JSON representation ·

Repository

Survival analysis in Python

Basic Info
  • Host: GitHub
  • Owner: CamDavidsonPilon
  • License: mit
  • Language: Python
  • Default Branch: master
  • Homepage: lifelines.readthedocs.org
  • Size: 43.1 MB
Statistics
  • Stars: 2,487
  • Watchers: 66
  • Forks: 561
  • Open Issues: 277
  • Releases: 124
Topics
cox-regression data-science maximum-likelihood python reliability-analysis statistics survival-analysis
Created over 12 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing Funding License Code of conduct Citation

README.md

PyPI version Anaconda-Server Badge DOI

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 survival analysis. For example: - SaaS providers are interested in measuring subscriber lifetimes, or time to some first action - inventory stock out is a censoring event for true "demand" of a good. - sociologists are interested in measuring political parties' lifetimes, or relationships, or marriages - 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.

Documentation and intro to survival analysis

If you are new to survival analysis, wondering why it is useful, or are interested in lifelines examples, API, and syntax, please read the Documentation and Tutorials page

Contact

Development

See our Contributing guidelines.

Owner

  • Name: Cameron Davidson-Pilon
  • Login: CamDavidsonPilon
  • Kind: user
  • Location: Waterloo, Canada
  • Company: @Pioreactor

CEO of Pioreactor. Former Director of Data Science @Shopify. Author of Bayesian Methods for Hackers and DataOrigami.

JOSS Publication

lifelines: survival analysis in Python
Published
August 04, 2019
Volume 4, Issue 40, Page 1317
Authors
Cameron Davidson-Pilon ORCID
Independent researcher
Editor
Tania Allard ORCID
Tags
survival analysis reliability analysis maximum likelihood

Citation (CITATION.cff)

# YAML 1.2
---
authors:
  -
    family-names: "Davidson-Pilon"
    given-names: Cameron
    orcid: "https://orcid.org/0000-0003-1794-9143"
cff-version: "1.1.0"
doi: "https://doi.org/10.21105/joss.01317"
license: MIT
message: "If you use this software, please cite it using these metadata."
repository-code: "https://github.com/camDavidsonPilon/lifelines"
title: lifelines, survival analysis in Python
...

GitHub Events

Total
  • Create event: 2
  • Release event: 1
  • Issues event: 16
  • Watch event: 124
  • Delete event: 1
  • Issue comment event: 34
  • Push event: 4
  • Pull request event: 4
  • Fork event: 13
Last Year
  • Create event: 2
  • Release event: 1
  • Issues event: 16
  • Watch event: 124
  • Delete event: 1
  • Issue comment event: 34
  • Push event: 4
  • Pull request event: 4
  • Fork event: 13

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 1,954
  • Total Committers: 120
  • Avg Commits per committer: 16.283
  • Development Distribution Score (DDS): 0.174
Past Year
  • Commits: 8
  • Committers: 3
  • Avg Commits per committer: 2.667
  • Development Distribution Score (DDS): 0.25
Top Committers
Name Email Commits
CamDavidsonPilon c****n@g****m 1,614
Jonas Kalderstam j****s@k****e 87
Noah n****h@v****m 20
Sean Reed s****n@s****m 12
Ben Kuhn b****n@g****m 10
Paul Zivich 3****h 10
Mike Williamson t****w@g****m 8
AbdealiJK a****i@g****m 7
Andrew Gartland a****d@g****m 6
Deepyaman Datta d****a@u****u 6
Vincent M m****t@y****r 5
Gabriel g****g@g****m 5
Alex Parij p****x@g****m 5
lgmoneda l****a@g****m 5
Arturo Moncada-Torres 3****s 5
Badr-MOUFAD b****d@e****a 4
Daniel Wilson h****l@g****m 4
Kyle k****e@g****m 4
mathurinm m****s@g****m 4
Jona y****e@g****m 3
JoseLlanes j****4@g****m 3
Karthikeyan Singaravelan t****i@g****m 3
Miguel Sancho Peña m****u@g****m 3
santon s****n@i****m 3
Niels Bantilan n****s@p****m 3
Harsh Gadgil h****l@g****m 3
jlim13@cs.unc.edu j****3@c****u 2
invictus2010 j****n@g****m 2
davegolland d****6@g****m 2
Younes u****1@g****m 2
and 90 more...

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 176
  • Total pull requests: 40
  • Average time to close issues: 7 months
  • Average time to close pull requests: 20 days
  • Total issue authors: 141
  • Total pull request authors: 29
  • Average comments per issue: 2.62
  • Average comments per pull request: 1.48
  • Merged pull requests: 31
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 15
  • Pull requests: 7
  • Average time to close issues: about 12 hours
  • Average time to close pull requests: 12 days
  • Issue authors: 14
  • Pull request authors: 6
  • Average comments per issue: 1.0
  • Average comments per pull request: 1.43
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • CamDavidsonPilon (14)
  • SurajitTest (5)
  • ibobak (4)
  • daniyalshahzad (3)
  • fkiraly (3)
  • dpellow (2)
  • NickCEBM (2)
  • Zethson (2)
  • kyleabeauchamp (2)
  • dominicyu04 (2)
  • benslack19 (2)
  • RSHum23 (2)
  • shilet (2)
  • ayadasan (1)
  • ensley (1)
Pull Request Authors
  • CamDavidsonPilon (11)
  • asarigun (2)
  • FBruzzesi (2)
  • mathematicalmichael (2)
  • rvdinter (2)
  • mathurinm (2)
  • h-b-k-nishi (2)
  • sbwiecko (2)
  • Unessam (2)
  • he7d3r (1)
  • Kilo59 (1)
  • Vincent-Maladiere (1)
  • DanBasson (1)
  • bofeng2018 (1)
  • ewulczyn (1)
Top Labels
Issue Labels
docs (10) bug (7) next minor release 🤞 (7) plotting (6) convergence issue (4) enhancement (4) Help wanted (3) tests (2) Rlang difference (2) installation (2) modelling (2) scikit-learn (2) left-censoring (1) better error handling (1) time-varying (1) performance (1)
Pull Request Labels

Packages

  • Total packages: 5
  • Total downloads:
    • pypi 1,637,209 last-month
  • Total docker downloads: 596,658
  • Total dependent packages: 56
    (may contain duplicates)
  • Total dependent repositories: 515
    (may contain duplicates)
  • Total versions: 464
  • Total maintainers: 2
pypi.org: lifelines

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

  • Versions: 172
  • Dependent Packages: 51
  • Dependent Repositories: 506
  • Downloads: 1,637,209 Last month
  • Docker Downloads: 596,658
Rankings
Dependent packages count: 0.4%
Downloads: 0.5%
Dependent repos count: 0.6%
Docker downloads count: 0.9%
Average: 1.0%
Stargazers count: 1.5%
Forks count: 2.1%
Maintainers (1)
Last synced: 4 months ago
proxy.golang.org: github.com/CamDavidsonPilon/lifelines
  • Versions: 116
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.6%
Average: 5.8%
Dependent repos count: 6.0%
Last synced: 4 months ago
proxy.golang.org: github.com/camdavidsonpilon/lifelines
  • Versions: 116
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.6%
Average: 5.8%
Dependent repos count: 6.0%
Last synced: 4 months ago
spack.io: py-lifelines

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.). *lifelines* is a pure Python implementation of the best parts of survival analysis.

  • Versions: 2
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent repos count: 0.0%
Forks count: 4.0%
Stargazers count: 5.0%
Average: 9.3%
Dependent packages count: 28.1%
Maintainers (1)
Last synced: 4 months ago
conda-forge.org: lifelines
  • Versions: 58
  • Dependent Packages: 4
  • Dependent Repositories: 9
Rankings
Forks count: 7.3%
Stargazers count: 8.9%
Average: 10.1%
Dependent repos count: 11.6%
Dependent packages count: 12.5%
Last synced: 4 months ago

Dependencies

reqs/base-requirements.txt pypi
  • autograd >=1.3
  • autograd-gamma >=0.3
  • formulaic >=0.2.2
  • matplotlib >=3.0
  • numpy >=1.14.0
  • pandas >=1.0.0
  • scipy >=1.2.0
reqs/dev-requirements.txt pypi
  • black *
  • check-wheel-contents *
  • coverage >=4.4
  • dill *
  • flaky *
  • mypy *
  • pre-commit *
  • prospector *
  • pypandoc *
  • pytest >=4.6
  • pytest-cov *
  • pytest-icdiff *
  • scikit-learn >=0.22.0
  • statsmodels *
  • sybil *
reqs/docs-requirements.txt pypi
  • ipykernel *
  • jupyter_client *
  • nbconvert *
  • nbsphinx *
  • sphinx *
  • sphinx_rtd_theme *
reqs/travis-requirements.txt pypi
  • dill *
  • pytest-travis-fold *
  • python-coveralls *
  • seaborn *
.github/workflows/ci.yaml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
.github/workflows/pythonpublish.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v1 composite