Skip to main content

Library of Stan Models for Survival Analysis

Project description

.. survivalstan documentation master file, created by
sphinx-quickstart on Fri Jan 6 06:25:53 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.


Survivalstan is a library of Survival Models written in `Stan <>`_

It also contains a number of utility functions helpful when doing survival analysis.

Typical usage:


import survivalstan
# .. prep your data
fit1 = survivalstan.fit_stan_survival_model(...)
survivalstan.utils.plot_stan_summary([fit1], metric=’Rhat’)


- Variety of standard survival models
- Weibull, Exponential, and Gamma parameterization
- A variety of semi-parametric and non-parametric baseline hazards
- Supports time-varying-coefficients
- Estimate time-varying effects
- Varying-effects by group
- Extensible framework - bring your own Stan code, or edit the models provided
- Uses `pandas <>`_ data frames & `patsy <>`_ formulas
- Graphical posterior predictive checking
- Plot posterior estimates of key parameters using `seaborn <>`_
- Annotated posterior draws of parameter estimates, as `pandas <>`_ dataframes
- Supports caching via `stancache <>`_ or `pystan-cache <>`_


Install survivalstan via pip:


pip install survivalstan


- Issue Tracker:
- Source Code:


If you are having issues or questions, please let us know.

Please submit an issue `github <>`_ or via `gitter <>`_


The project is licensed under the Apache 2.0 license.


`Documentation`_ is available online.

Project details

Download files

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

Files for survivalstan, version
Filename, size File type Python version Upload date Hashes
Filename, size survivalstan- (59.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page