MyNixOS website logo
Description

Statistical Tools for Modelling Climate-Health Impacts.

Tools for producing climate-health indicators and supporting official statistics from health and climate data. Implements analytical workflows for temperature-related mortality, wildfire smoke exposure, air pollution, suicides related to extreme heat, malaria, and diarrhoeal disease outcomes, with utilities for descriptive statistics, model validation, attributable fraction and attributable number estimation, relative risk estimation, minimum mortality temperature estimation, and plotting for reporting. These six indicators are endorsed by the United Nations Statistical Commission for inclusion in the Global Set of Environment and Climate Change Statistics. Implemented methods include distributed lag non-linear models (DLNM), quasi-Poisson time-series regression, case-crossover analysis, Bayesian spatio-temporal models using the Integrated Nested Laplace Approximation ('INLA'), and multivariate meta-analysis for sub-national estimates. The package is based on methods developed in the Standards for Official Statistics on Climate-Health Interactions (SOSCHI) project <https://climate-health.officialstatistics.org>. For methodologies, see Watkins et al. (2026) <doi:10.5281/zenodo.14865904>, Jose et al. (2026) <doi:10.5281/zenodo.14052183>, Pearce et al. (2026) <doi:10.5281/zenodo.14050224>, Byukusenge et al. (2026) <doi:10.5281/zenodo.15585042>, Dzakpa et al. (2026) <doi:10.5281/zenodo.14881886>, and Dzakpa et al. (2026) <doi:10.5281/zenodo.14871506>.

Static Badge Static Badge Static Badge codecov Build R Package on Release R CMD Check and Coverage

SOSCHI logo




Climatehealth Package

Table of Contents

Package Overview

Description

This package provides functions for calculating climate–health indicators and supporting the production of climate–health statistics. The methods implemented in the package follow the statistical framework for climate–health indicators developed under the Standards for Official Statistics on Climate–Health Interactions (SOSCHI) project. You can find out more and stay up to date with the SOSCHI project here.

The methods for measuring headline outcome indicators for the SOSCHI topics were endorsed by the 57th United Nations Statistical Commission for inclusion in the Global Set of Climate Change Statistics and Indicators (see decision 57/109 (b) in the Final Report).

The package is also now available on CRAN.

SOSCHI Topics and Indicators

This package contains scientific functions dedicated to the following topics in the SOSCHI framework. Please note the final methods documents are still in development, so the versions linked below are earlier alpha versions.

TopicTopic OwnerMethodsNotes
Temperature-related health effectsONSMethodology DocumentThe temperature-related health effects code and associated analysis functions are undergoing revision and review corrections. Updates to the R package are coming soon. Please check back later.
Health effects of wildfiresONSMethodology DocumentThe indicator can optionally extract wildfire PM2.5 data from the FMI open-source dataset. This functionality is currently compatible with Version 5 only. Earlier dataset versions are not supported.
Mental healthONSMethodology Document
Water-borne diseasesAIMSMethodology Document
Health effects of air pollutionAIMSMethodology Document
Vector-borne diseasesRIPS/AIMSMethodology Document

[!NOTE] Please note that there may be some inconsistencies between the indicators and methods included in the Github code/R package, and those described in the corresponding SOSCHI topic documents, and/or related analysis publications. This is because the final methods documents are still in development, so those linked below in the section 'SOSCHI Topics and Indicators' are an earlier alpha version.

For information on how to use this R package, check here

Package Installation

Requirements

To install and use the package, you need an R environment. This package has been developed primarily with R 4.4.1, and that version is recommended where possible. R-4.4.1 can be downloaded here

Installation options

You can use the package in several ways, depending on whether you want a stable release or want to work with the source code.

1. Install the stable CRAN release

If you want the latest stable public release, install the package directly from CRAN:

install.packages("climatehealth")

You can also browse the CRAN package page here.

2. Load from a local GitHub clone for development

Use this option if you want to inspect the source code, make changes locally, test updates, or contribute to the package.

First clone the repository from GitHub to your machine. Then in R:

install.packages("devtools")
devtools::load_all(path = "{path/to/climatehealth}")

This loads the package directly from the local source directory into your current R session. This is useful for development, but won't make the climatehealth package available as a standard installed package in your library. Once the source code changes, run devtools::load_all() again to reload the updated functions. If you are an end user, follow the standard installation procedure outlined below for your operating system.

3. Install directly from GitHub

If you want to install the latest development version of the package directly from GitHub without cloning the repository, you can use remotes::install_github().

First install the remotes package in R if needed:

install.packages("remotes")

Then install the package with:

remotes::install_github("onssoschi/climatehealth")

This installs the package from the GitHub repository into your R library in the usual way. This option is useful if you want the latest development version of the package but do not need to edit the source code locally.

4. Install the latest Windows binary release (pre-compiled)

If you would like to install the latest official release of the package, download the .zip file from the latest GitHub release here. Then install it in R with:

install.packages(path = "{path/to/climatehealth_<version>.zip}", repos = NULL, type = "win.binary")

where <version> is the version number of the release you downloaded.

5. Install the latest source release for MacOS or other platforms (needs compilation)

If you are using MacOS and would like to install from the source, download the .tar.gz file from the latest GitHub release here. Then install it in R with:

install.packages(path = "{path/to/climatehealth_<version>.tar.gz}", repos = NULL, type = "source")

where <version> is the version number of the release you downloaded.

Running analysis

Once the package is installed or loaded, you can run any of the main analysis entry points depending on your use case.

Indicator workflows

Most indicator modules are run through a top-level *_do_analysis() function. For example:

result <- climatehealth::air_pollution_do_analysis(
  data_path = "{path/to/your_data.csv}"
)

Other indicators follow the same pattern, for example:

temp_mortality_do_analysis()
wildfire_do_analysis()
malaria_do_analysis()
diarrhea_do_analysis()
suicides_heat_do_analysis()

Each analysis function expects specific input data and parameters for that indicator, so refer to the package documentation for the relevant module before running it.

Example usage scripts for the main indicator workflows are provided in inst/examples/, including:

  • air_pollution_usage.R
  • temp_mortality_usage.R
  • wildfires_usage.R
  • malaria_usage.R
  • diarrhea_usage.R
  • suicides_heat_usage.R
  • descriptive_stats_usage.R

Descriptive statistics

You can also run the descriptive statistics workflow directly:

result <- climatehealth::run_descriptive_stats(
  data = my_data,
  output_path = "{path/to/output}"
)

This is useful for checking data quality, exploring variables, and generating summary outputs before running an indicator-specific workflow.

Contributing to the package

We welcome contributions from public users, collaborators, and developers who want to improve the package. If you want to contribute code, documentation, tests, or bug fixes, please start by reading the CONTRIBUTING guide CONTRIBUTING. This includes guidance on setting up a local development workflow, making changes safely, and submitting updates through GitHub.

Authors

The package authors reflect direct intellectual and technical contributions to the package architecture, module methods, and reproducible analytical workflows.

  • Lead author: Charlie Browning
  • Lead maintainer and platform developer: Kenechi Omeke
  • Authors: Etse Yawo Dzakpa, Gladin Jose, Matt Pearce, Ellie Watkins, Claire Hunt, Beatrice Byukusenge, Cassien Habyarimana, Venuste Nyagahakwa, Felix Scarbrough, Treesa Shaji, Bonnie Lewis, and Vijendra Ingole

Contributors

The following contributors supported the package through bug fixes, minor features, testing, documentation, and review work:

  • Sean Lovell
  • Antony Brown
  • Euan Soutter
  • Gillian Flower
  • David Furley
  • Joe Panes
  • Charlotte Romaniuk
  • Milly Powell

Project Lead

  • Myer Glickman, Bonnie Lewis and Vijendra Ingole

Methodology review

  • Sewe Maquines

Acknowledgements

We acknowledge the Topic Expert Group members and Expert Advisory Group members for higher-level leadership, methodological input, and subject-area support to the SOSCHI climate-health work. We also acknowledge the use of external data and code examples that informed testing and early prototyping.

Copyright

This is an open access R package published under a UK Open Government Licence 3.0 which is compatible with the Creative Commons CC-BY-SA 4.0 licence. You are free to copy, publish, distribute and adapt the information, provided you acknowledge the source and link to this R package (see citation below). Enquiries concerning the application of this R package can be made to the project team at [email protected].

Citation

If you use climatehealth in publications, cite the package as:

Browning, C., Omeke, K., Dzakpa, E. Y., Jose, G., Pearce, M., Watkins, E., Hunt, C., Byukusenge, B., Habyarimana, C., Nyagahakwa, V., Scarbrough, F., Shaji, T., Lewis, B., and Ingole, V. (2026). climatehealth: Statistical Tools for Modelling Climate-Health Impacts. R package.

An R package citation file is provided at inst/CITATION.

Funding

Static Badge

This work was supported by Wellcome.

Metadata

Version

1.0.3

License

Unknown

Platforms (79)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    wasip1
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasip1
  • wasm64-wasip1
  • x86_64-cygwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows