Stroke lifetime: health economics calculations for lifetime after stroke.
Project description
stroke-lifetime
Toolkit for calculating lifetime survival probabilities and resource use for patients after stroke.
- Source code: https://github.com/stroke-optimist/stroke-lifetime
- Full background and methods: (link to paper to be added when available)
- Detailed workthrough of methods: https://lifetime-stroke-outcome.streamlit.app/
- PyPI package: https://pypi.org/project/stroke-lifetime/
- Parent project: stroke-optimist Stroke OPTIMIST Project: OPTimising IMplementation of Ischaemic Stroke Thrombectomy
➡️ Get started
This toolkit works with Python versions 3.8 and up.
Install the package with:
pip install stroke-lifetime
And follow the link to the code demonstration in the "External resources" section below.
🏥 Motivation in brief:
Given values for a patient's age, sex, and Modified Rankin Scale (mRS) score on discharge from hospital following a stroke, we can calculate the following quantities across the remainder of that patient's lifespan:
- The probability of survival of the patient in each year.
- The number of Quality-Adjusted Life Years (QALYs).
- The expected use of resources (e.g. number of admissions to A&E and number of years spent in residential care) and the cost of those resources.
- The discounted total net benefit by change in mRS score.
The model is described in a paper that's not yet published. Link will be added when available.
📦 Package details:
There are three main modules in the package:
models.py
- Basic models.fixed_params.py
- Constants.main_calculations.py
- Gathers the basic models and calculates all of the useful outputs.
👑 Example usage: Streamlit app
View a Streamlit app that uses this package and presents the methods in detail:
- Streamlit app: https://lifetime-stroke-outcome.streamlit.app/
- DOI: https://doi.org/10.5281/zenodo.8269389
📚 External resources
The following resources are not included within the package files and are accessible on the GitHub repository.
A conda environment file, environment.yml
, is provided in the GitHub repository for use with the demonstration Jupyter notebook.
- - Code demonstration of running the main function and using the results. It also contains reference tables to describe the results categories.
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
Built Distribution
File details
Details for the file stroke_lifetime-3.0.1.tar.gz
.
File metadata
- Download URL: stroke_lifetime-3.0.1.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff22e8e73bcda1b12fb547204f0ef2b06e10919ba3c866e1739624871dd9d1e1 |
|
MD5 | 57e30119757fb2008d7b5337b626e0ab |
|
BLAKE2b-256 | 6c58e01567b172570ef142b5952acdc7d7d57aede7419da4d89683371f2a73fc |
File details
Details for the file stroke_lifetime-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: stroke_lifetime-3.0.1-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e631dec9ec3368be2a6a59ac678cea217458f7cc32e4f2292ad166c73a68d36f |
|
MD5 | e642728331062357cf0e2c7fcd285675 |
|
BLAKE2b-256 | 07accc7a1a844c44e7c7bb2f730d9a62a5c7f0462a02ea590d5bed041459b8d2 |