Skip to main content
.. 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
============

Survivalstan is a library of Survival Models written in `Stan <http://mc-stan.org>`_

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’)
survivalstan.utils.plot_coefs([fit1])

Features
--------

- 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 <https://pandas.pydata.org>`_ data frames & `patsy <https://pypi.python.org/pypi/patsy>`_ formulas
- Graphical posterior predictive checking
- Plot posterior estimates of key parameters using `seaborn <https://pypi.python.org/pypi/seaborn>`_
- Annotated posterior draws of parameter estimates, as `pandas <http://pandas.pydata.org>`_ dataframes
- Supports caching via `stancache <http://github.com/jburos/stancache>`_ or `pystan-cache <https://github.com/paulkernfeld/pystan-cache>`_

Installation
------------

Install survivalstan via pip:

::

pip install survivalstan

Contribute
----------

- Issue Tracker: http://github.com/hammerlab/survivalstan/issues
- Source Code: http://github.com/survivalstan/survivalstan

Support
-------

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

Please submit an issue `github <http://github.com/hammerlab/survivalstan/issues>`_ or via `gitter <https://gitter.im/survivalstan>`_

License
-------

The project is licensed under the Apache 2.0 license.


Documentation
-------------

`Documentation http://jburos.github.io/survivalstan`_ is available online.

Metadata

Release files for survivalstan 0.1.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for survivalstan 0.1.2.8
File Size Uploaded Provenance Actions
survivalstan-0.1.2.8.tar.gz 59.9 kB Without provenance Details for survivalstan-0.1.2.8.tar.gz

Release files / survivalstan-0.1.2.8.tar.gz

Download URL survivalstan-0.1.2.8.tar.gz
Size 59.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e33bc551947caa232b5397a23d13898b0329e415ddebf8875e8555fa8dc88d7c
BLAKE2b-256 checksum
How to use checksums
86fa751a9011f2cc0e4a990b16fbbc50fdf91c73266ad761c91ca532e166ae23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

Security for survivalstan 0.1.2.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page