README: Supplementary materials Paper: Using household deaths questions from surveys to assess adult mortality in periods of health crisis: an application for Peru, 2018-2022 Authors: Jose H C Monteiro da Silva and Helena C Castanheira Version: 2024-07-16 ------------------------------------------------------------- For any question or inquiry regarding the replication of our findings, please email Jose H C Monteiro da Silva (josehcms at sas.upenn.edu or zecosta.monteiro at gmail.com) This zip file contains the R codes for replicating the analysis, tables and figures of the paper. We also share the processed dataset and the computed estimates. The raw input data from ENDES survey can be downloaded from https://proyectos.inei.gob.pe/microdatos/index.htm and the Life tables from the 2022 revision of WPP can be retrieved from https://population.un.org/wpp/Download/Archive/Standard/. 00_functions: contains the basic functions for processing the ENDES microdata and for estimating nMx and 45q20 01_hosekeeping: basic setup used across all scripts (for installing required packages) 10_process_endes_data: script for processing the microdata - the main output is the processed dataset 00_input_endes_data.RData 20_estimate_nMx_endes: script for estimating nMx - the main output is the dataset 10_nMx_endes_estimates.rds 30_estimate_45q20_endes_hhdeaths: script for estimating 45q20 using the household deaths from ENDES survey - the main output is the dataset 20_45q20_endes_hhdeaths_estimates.rds 31_estimate_45q20_endes_sibhist: script for estimating 45q20 using sibling histories from ENDES survey - the main output is the dataset 21_45q20_endes_sibhist_estimates.rds 32_estimate_45q20_endes_wpp2022: script for estimating 45q20 using WPP 2022 - the main output is the dataset 22_45q20_endes_wpp_estimates.rds 41_prepare_outputs_table1: script for preparing table 1 42_prepare_outputs_figure1: script for preparing figure 1 43_prepare_outputs_figure2: script for preparing figure 2 44_prepare_outputs_table2: script for preparing table 2 50_supplem_sensitivity_analysis: script for comparing the estimates of household deaths for the same reference period using different survey years - see suppmat1.docx