https://github.com/bc3lc/rhap
Econometric analysis to analyze health impacts attributable to indoor air pollution
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
Repository
Econometric analysis to analyze health impacts attributable to indoor air pollution
Basic Info
- Host: GitHub
- Owner: bc3LC
- License: bsd-2-clause
- Language: R
- Default Branch: main
- Homepage: https://bc3lc.github.io/rhap/
- Size: 132 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
- Releases: 3
Metadata Files
README.md
rhap
Contents
Key Links
- Github: https://github.com/bc3LC/rhap
- Webpage: bc3lc.github.io/rhap/
Introduction
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
TBA
Installation Guide
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:
- R: Download R
- RStudio (recommended IDE): Download RStudio
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:
- R: Download R
- RStudio (recommended IDE): Download RStudio
- Git: Download Git
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.Rprojfile 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
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
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
Authors
Joint Global Change Research Institute, Pacific Northwest National Laboratory, College Park, MD, USA
University of the Basque Country, Bilbao, Spain
Tags
PollutionGitHub 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
- 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
- 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
- actions/cache v3 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- actions/checkout v3 composite
- actions/upload-artifact v4 composite
- openjournals/openjournals-draft-action master composite
- 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