Full text
rhap: A tool to analyze health impacts attributable to household air pollution Jon Sampedro 1, Clàudia Rodés-Bachs 1, Steven J. Smith 2, Manuel Tomás 1, Ismael Urrutia3, and Dirk-Jan Van de Ven 1 1Basque Centre for Climate Change (BC3), Leioa, Spain 2Joint Global Change Research Institute, Pacific Northwest National Laboratory, College Park, MD, USA 3University of the Basque Country, Bilbao, Spain DOI: 10.21105/joss.08091 Software •Review •Repository •Archive Editor: Nick Golding Reviewers: •@ibarraespinosa •@slwu89 Submitted: 25 February 2025 Published: 10 October 2025 License Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC BY 4.0). Summary Recent evidence highlights household air pollution as a significant health risk, particularly in the Global South. However, its impacts are frequently overlooked in the integrated assessment models widely used for global scenario analyses. Alternative scenarios with diverse socioeconomic pathways or climate policies could reshape access to affordable clean energy, particularly for low-income groups, directly impacting household air pollution. rhap is an R package developed to estimate health impacts attributable to household air pollution (HAP) under alternative scenarios simulated using the Global Change Analysis Model (GCAM). These impacts are derived using an econometric model that links health outcomes from HAP to various air pollutant emissions and socioeconomic variables, all of which can be extracted from scenario-specific GCAM outputs. Figure 1 provides an overview of the rhap package structure. Figure 1: Overview of rhap The rhap package is publicly available on GitHub at https://github.com/bc3LC/rhap. Below is a simplified example demonstrating how to run the package. Comprehensive documentation is also provided and can be accessed here. install.packages("remotes") library(remotes) remotes::install_github("bc3LC/rhap") library(rhap) db_path <- "path_to_your_gcam_database" # NULL if project file provided Sampedro et al. (2025). rhap: A tool to analyze health impacts attributable to household air pollution. Journal of Open Source Software,10(114), 8091. https://doi.org/10.21105/joss.08091.1
db_name <- "name of the database" # NULL if project file provided prj_name <- "name of the project file" scen_name <- "name of the GCAM scenario" # or vector of names HIA_var <- "deaths" # or YLLs or DALYs hap_damages <- calc_hap_impacts( db_path, db_name, prj_name, scen_name, final_db_year = 2100, HIA_var, saveOutput = TRUE, map = TRUE ) Statement of need According to the World Health Organization’s (WHO) Global Health Observatory, HAP is one of the major risk factors for human health, particularly in the Global South, causing around 3.2 million deaths per year in 2020, including over 237,000 deaths of children under the age of 5. HAP affects human health from pre-conception to old age, leading to noncommunicable diseases including cataract, chronic obstructive pulmonary disease, ischaemic heart disease, lower respiratory infections, lung cancer, neonatal disorders, stroke, and type 2 diabetes (Bennitt et al., 2025). In addition to its direct health impacts, disproportionately affecting infants and the elderly, household air pollution (HAP) also has broader socioeconomic consequences, such as reduced work productivity (Neidell & others, 2023) and the exacerbation of gender inequalities (Krishnapriya et al., 2021). Given the magnitude of these effects, various methodologies have been developed to estimate HAP and its associated health implications (Das et al., 2021;Mohajeri et al., 2023). However, HAP and its subsequent impacts on human health are often overlooked in global scenario analysis. Alternative socioeconomic and climate pathways, such as those involving high or low GDP growth and the adoption of deep decarbonization strategies, can significantly influence the transition to cleaner energy fuels and technologies. These transitions may improve access to cleaner energy sources for lower-income households, thereby reducing exposure to HAP and mitigating its health impacts. Despite this, the dominant tools used in global scenario analysis, namely, integrated assessment models (IAMs), typically estimate future emissions of air pollutants but do not report on air pollution levels or their health consequences. While some external tools can be linked to IAMs to assess ambient air pollution and its impacts (Sampedro et al., 2022), there is currently no such tool available for HAP and its associated effects. Incorporating HAP dynamics into IAMs, such as the Global Change Analysis Model (GCAM), represents a meaningful contribution to the field. It provides important insights for evaluating alternative future scenarios with greater attention to equity, health, and household-level energy transitions. GCAM is a multisector integrated assessment model that quantifies human and Earth-system dynamics by examining the interconnections between the economy, energy, water, climate, and agriculture, forestry, and land use (AFOLU) systems. Detailed documentation is available online. Focusing on emissions, GCAM estimates a wide range of greenhouse gases and air pollutants for each future scenario, categorized by sector, region, and time period up to 2100. Nevertheless, while GCAM estimates direct air pollutant emissions from the residential sector, it does not account for HAP levels or their associated health impacts. The rhap package bridges this gap by quantifying HAP impacts for each GCAM scenario. Given the well-documented Sampedro et al. (2025). rhap: A tool to analyze health impacts attributable to household air pollution. Journal of Open Source Software,10(114), 8091. https://doi.org/10.21105/joss.08091.2
importance of HAP and its health impacts, a tool that automatically estimates these effects within the GCAM modelling framework represents a valuable advancement for the integrated assessment modelling community, and it addresses a critical gap in global scenario analysis. Functionality The core function of this package is the calc_hap_impacts function, specifically designed to estimate health impacts attributable to HAP across different GCAM scenarios. This function extracts and processes the required socioeconomic and emissions data from GCAM databases or project files and employs a fixed-effects econometric regression model to estimate impacts. Key covariates in the model include direct emissions from the residential sector (Primary PM2.5, NOx, and VOC), per capita GDP, and per capita floorspace. The model is calibrated using cross-regional, multi-year panel data aggregated from diverse sources. Detailed information about the model’s formulation, underlying assumptions, and data sources is provided in the accompanying vignette. The calc_hap_impacts function offers flexibility in generating three distinct health impact metrics: premature mortalities, Years of Life Lost (YLLs), and Disability-Adjusted Life Years (DALYs). Users can specify the desired metric by setting the HIA_var parameter, with premature mortalities selected by default. The package also offers an optional feature ( by_gr = TRUE ) to estimate health impacts by income decile within each region. While country-level calculations ensure consistency, this feature helps explore intra-regional disparities. In terms of outputs, activating the saveOutput parameter enables the function to save results as a Comma-Separated Values (CSV) file in the output sub-directory. The function can also generate damage maps and animations by enabling the map and anim parameters, respectively, based on the rmap package (Khan et al., 2022), as shown in Figure 2. Figure 2: Premature deaths per 100.000 inhabitants attributable to household air pollution in 2050 The package includes an additional function, calc_ResidEm_grp , which quantifies the contribution of within-region consumer groups (e.g., income deciles) to emissions of various pollutants driving HAP. Users can customize the analysis by specifying the desired region, time period, and pollutant through adjustable parameters. A full list of pollutants that can be analyzed is provided in the dedicated vignette. This functionality supports targeted assessments of how different consumer groups contribute to HAP emissions within specific contexts, offering valuable insights for research and policy development (see Figure 3 as an example). Sampedro et al. (2025). rhap: A tool to analyze health impacts attributable to household air pollution. Journal of Open Source Software,10(114), 8091. https://doi.org/10.21105/joss.08091.3
Figure 3: Direct BC emissions from the residential sector in India in 2050 by income decile Acknowledgements This research is supported by the European Union’s Horizon research program under grant agreement 101060679 (GRAPHICS project); by the María de Maeztu Excellence Unit 2023-2027 Ref. CEX2021-001201-M, funded by MCIN/AEI /10.13039/501100011033; and by the Basque Government through the BERC 2022-2025 program. The authors also acknowledge financial support from the Horizon Europe European Commission Projects ‘IAM COMPACT’ (grant no. 101056306) and ‘DIAMOND’ (grant no. 101081179). The views and opinions expressed in this paper are those of the authors alone. References Bennitt, F. B., Wozniak, S., Causey, K., Spearman, S., Okereke, C., Garcia, V., Hashmeh, N., Ashbaugh, C., Abdelkader, A., Abdoun, M., & others. (2025). Global, regional, and national burden of household air pollution, 1990–2021: A systematic analysis for the Global Burden of Disease study 2021. The Lancet. Das, I., Lewis, J. J., Ludolph, R., Bertram, M., Adair-Rohani, H., & Jeuland, M. (2021). The benefits of action to reduce household air pollution (BAR-HAP) model: A new decision support tool. Plos One,16(1), e0245729. https://doi.org/10.1371/journal.pone.0245729 Khan, Z., Zhao, M., Vernon, C. R., Wild, T., & Yarlagadda, B. (2022). rmap: An R package to plot and compare tabular data on customizable maps across scenarios and time. Journal of Open Source Software,7(PNNL-SA-168873). https://doi.org/10.21105/joss.04015 Krishnapriya, P., Chandrasekaran, M., Jeuland, M., & Pattanayak, S. K. (2021). Do improved cookstoves save time and improve gender outcomes? Evidence from six developing countries. Energy Economics,102, 105456. https://doi.org/10.1016/j.eneco.2021.105456 Mohajeri, N., Hsu, S.-C., Milner, J., Taylor, J., Kiesewetter, G., Gudmundsson, A., Kennard, H., Hamilton, I., & Davies, M. (2023). Urban–rural disparity in global estimation of PM2.5 household air pollution and its attributable health burden. The Lancet Planetary Health, 7(8), e660–e672. https://doi.org/10.1016/S2542-5196(23)00133-X Neidell, M. P., & others. (2023). Air pollution and worker productivity. IZA World of Labor. https://doi.org/10.15185/izawol.363.v2 Sampedro et al. (2025). rhap: A tool to analyze health impacts attributable to household air pollution. Journal of Open Source Software,10(114), 8091. https://doi.org/10.21105/joss.08091.4
Sampedro, J., Khan, Z., Vernon, C. R., Smith, S. J., Waldhoff, S., & Van Dingenen, R. (2022). rfasst: An R tool to estimate air pollution impacts on health and agriculture. Journal of Open Source Software,7(69), 3820. https://doi.org/10.21105/joss.03820 Sampedro et al. (2025). rhap: A tool to analyze health impacts attributable to household air pollution. Journal of Open Source Software,10(114), 8091. https://doi.org/10.21105/joss.08091.5