https://github.com/bc3lc/rhap

Econometric analysis to analyze health impacts attributable to indoor air pollution

https://github.com/bc3lc/rhap

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

Econometric analysis to analyze health impacts attributable to indoor air pollution

Basic Info
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 1
  • Releases: 3
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License

README.md

rhap

Project Status: Active  The project has reached a stable, usable state and is being actively developed. build docs pages-build-deployment test_coverage codecov DOI

Contents

Key Links

Back to Contents

  • Github: https://github.com/bc3LC/rhap
  • Webpage: bc3lc.github.io/rhap/

Introduction

Back to Contents

rhap is a package designed to estimate health impacts attributable to household air pollution (HAP) associated with alternative scenarios simulated using the Global Change Analysis Model (GCAM).

Citation

Back to Contents

TBA

Installation Guide

Back to Contents

You can install the rhap package in two ways:

  • Option 1: Install directly from GitHub
  • Option 2: Clone the repository (recommended for full access to project files)

Option 1: Direct Installation from GitHub

Prerequisites

Make sure the following software is installed:

Install the Package

  • Open RStudio

  • Run the following in the R Console:

r install.packages("remotes") # Skip if already installed remotes::install_github("bc3LC/rhap")

Option 2: Clone the Repository (Recommended)

Cloning the repository is recommended if you want full access to the project structure, input files, and examples.

Prerequisites

Make sure the following software is installed:

Step 1: Clone the Repository

Open Git Bash (or a terminal) in your desired directory, and run:

bash git clone https://github.com/bc3LC/rhap.git

This will create a local copy of the repository.

Step 2: Open the Project in RStudio

  • Open the rhap.Rproj file inside the cloned folder using RStudio.
  • In RStudio, either go to Build Install and Restart (or press Ctrl + Shift + B),
    or load the package manually by running the following code:

r install.packages("devtools") # Skip if already installed devtools::load_all()

Run a Baseline Example (Optional)

The rhap package includes a built-in .dat file that lets you run a test case based on a GCAM baseline scenario. This is a great way to verify that the package is working correctly and to explore its core functionality.

You can run this example with or without cloning the full repository, as the required data is included in the package:

r test_rhap <- rhap::test_rhap

For a step-by-step walkthrough of the example, visit the official guide: Run a baseline scenario

How to guides

Back to Contents

The primary function offered by this package is calc_hap_impacts, designed to estimate health impacts attributable to household air pollution (HAP) across a range of alternative GCAM scenarios. This function estimates scenario-specific health outcomes by seamlessly extracting and processing relevant data from GCAM databases or project files. The extracted data encompasses critical socioeconomic and environmental parameters, enabling comprehensive analysis of HAP impacts. These parameters include per capita GDP, emissions of key pollutants such as primary PM2.5 (BC+OC), NOx, and VOCs, and per capita floorspace metrics. By integrating these diverse factors, calc_hap_impacts facilitates detailed assessments of how variations in economic development, pollutant emissions, and living conditions influence human health under different policy or technological scenarios.

The package also includes an ancillary function, calc_ResidEm_grp, which determines the contribution of each within-region consumer group to household air pollution (HAP), with results categorized by region, year, and pollutant. Users can customize their analysis by specifying the desired region, time period, and pollutant through adjustable parameters when calling the function. This flexibility enables targeted assessments of how various consumer groups influence HAP across specific contexts, providing valuable insights for research and policy development.

Publications

Back to Contents

Owner

  • Name: BC3 Low Carbon department
  • Login: bc3LC
  • Kind: organization
  • Location: Spain

JOSS Publication

rhap: A tool to analyze health impacts attributable to household air pollution
Published
October 10, 2025
Volume 10, Issue 114, Page 8091
Authors
Jon Sampedro ORCID
Basque Centre for Climate Change (BC3), Leioa, Spain
Clàudia Rodés-Bachs ORCID
Basque Centre for Climate Change (BC3), Leioa, Spain
Steven J. Smith ORCID
Joint Global Change Research Institute, Pacific Northwest National Laboratory, College Park, MD, USA
Manuel Tomás ORCID
Basque Centre for Climate Change (BC3), Leioa, Spain
Ismael Urrutia
University of the Basque Country, Bilbao, Spain
Dirk-Jan Van de Ven ORCID
Basque Centre for Climate Change (BC3), Leioa, Spain
Editor
Nick Golding ORCID
Tags
Pollution

GitHub Events

Total
  • Create event: 2
  • Issues event: 1
  • Release event: 1
  • Issue comment event: 12
  • Public event: 1
  • Push event: 88
Last Year
  • Create event: 2
  • Issues event: 1
  • Release event: 1
  • Issue comment event: 12
  • Public event: 1
  • Push event: 88

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • assertthat * imports
  • countrycode * imports
  • data.table * imports
  • dplyr >= 1.1.2 imports
  • gcamdata * imports
  • ggplot2 * imports
  • here * imports
  • knitr * imports
  • magrittr * imports
  • markdown * imports
  • plm * imports
  • readr * imports
  • readxl * imports
  • rgcam * imports
  • rlang * imports
  • rmap * imports
  • rpackageutils * imports
  • rrapply >= 1.2.6 imports
  • rworldmap * imports
  • scales * imports
  • stringi * imports
  • stringr * imports
  • tibble * imports
  • tidyr * imports
  • usethis * imports
  • writexl * imports
  • rmarkdown * suggests
  • rprojroot * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/build.yaml actions
  • actions/checkout v1 composite
  • r-lib/actions/setup-pandoc v2-branch composite
  • r-lib/actions/setup-r v2-branch composite
  • r-lib/actions/setup-tinytex v2-branch composite
.github/workflows/docs.yaml actions
  • actions/cache v3 composite
  • actions/checkout v4 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
.github/workflows/draft-pdf.yml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v4 composite
  • openjournals/openjournals-draft-action master composite
.github/workflows/test_coverage.yaml actions
  • actions/checkout v1 composite
  • codecov/codecov-action v4.0.1 composite
  • r-lib/actions/setup-pandoc v2-branch composite
  • r-lib/actions/setup-r v2-branch composite
  • r-lib/actions/setup-tinytex v2-branch composite