An open API service indexing awesome lists of open source software.

https://github.com/mpascariu/lemur

R library for the Life Expectancy Monitoring Tool
https://github.com/mpascariu/lemur

cause-of-death decomposition life-expectancy lifetables

Last synced: 7 months ago
JSON representation

R library for the Life Expectancy Monitoring Tool

Awesome Lists containing this project

README

          

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# {lemur} - Life expectancy monitor upscaled in R
### R package and Shiny application

[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![issues](https://img.shields.io/github/issues-raw/mpascariu/lemur.svg)](https://github.com/mpascariu/lemur/issues)
[![license](https://img.shields.io/badge/License-GNU GPLv3-blue.svg)](https://github.com/mpascariu/lemur/blob/master/LICENSE)

The life expectancy monitoring tool allows the user to selected
mortality changes over the entire lifespan or at specific ages, as well as
for overall mortality or for specific causes of death. For example, how
would life expectancy look if cardiovascular mortality were to be reduced
by 50\%? Or how would life expectancy look if infant mortality was eliminated?
The tool facilitates assessing changes and comparisons in life expectancy
under those selected scenarios of mortality change. Furthermore, the tool
lets the user compare cause-of-death profiles and life expectancies across
time, countries and sexes.

The tool is hosted by the **HASS Digital Research Hub (HDRH)** at the Australian National University (ANU).

## Installation

You can install the development version from
[GitHub](https://github.com/mpascariu/lemur) with:

``` r
# install.packages("devtools")
devtools::install_github("mpascariu/lemur")
```
## Example

This is a basic example which shows you how to launch the monitor in your
browser:

```r
lemur::run_app()
```
[![App Screenshot](inst/app/www/app_lemur_20250928.png)](https://github.com/mpascariu/lemur)

All the simulations done in the monitor can be executed using the `R` syntax
directly in the R/Rstudio console. See the available data object
`data_gbd2021_cod`, `data_gbd2021_lt` or the help pages of relevant functions
like `decompose_by_cod()`, `modify_life_table()` and the related `plot_`
functions.