HOME: Harmonized Orphanhood Mortality Estimation

HOME is an R package designed to implement, compare, and diagnose indirect mortality estimation methods based on orphanhood data.

Key Features

📦 Installation

You can install the development version of HOME directly from GitHub:

# If you do not have devtools installed:
# install.packages("devtools")

devtools::install_github("tamaravaz/HOME", dependencies = T)

Quick Start: Estimating Mortality

# Input data: Respondent age, Proportion of mothers alive (Sn), Mean age of childbearing (Mn)
df_input <- data.frame(
  age_n = seq(15,60,5),
  Sn = c(0.95772787,0.94418605,0.89402174,0.84395199,0.77974435,0.67717391,0.49225268,0.33670034,0.20071685,0.09517426),
  Mn = rep(24,10)
)
# Run the estimation using the Luy (2012) method
# This creates an 'OrphanhoodEstimate' object containing metadata and inputs
est <- om_estimate_index(
  method = "luy",              
  sex_parent = "Female",
  age_respondent = df_input$age_n,
  p_surv = df_input$Sn,
  mean_age_parent = df_input$Mn,
  surv_date = 2024.75,         
  model_family = "General"
)

# Plots the logit-transformed residuals (Alpha) across age groups
om_plot_linearity(est)
# Re-runs the model with perturbed M values
sens_m <- om_sensitivity(est, range_m = seq(-1.5, 1.5, 0.5))
plot(sens_m, index = "e30")

# Re-runs the model using all UN families (General, South Asian, etc.)
sens_fam <- om_sensitivity_family(est, type = "UN")
plot(sens_fam, index = "30q30")

# Generates a composite view of linearity and sensitivity
om_dashboard(est, index = "e30", family_type = "UN")

Interactive Dashboard

library(HOME)

# This will open the dashboard in your default web browser
app_HOME()

📄 Methodology & Diagnostics

The package operationalizes the diagnostic framework described in the accompanying working paper. It addresses the trade-off between stability (favored by bounded metrics like 30q30|45q15) and communicability (favored by e30). Key diagnostic plots included in the package allow users to assess

  1. Internal Consistency: The linearity of logit-transformed residuals (\(\alpha\)) across age groups.
  2. Parameter Sensitivity: How errors in the Mean Age of Childbearing (\(\bar{M}\)) affect final life expectancy estimates.