Harmonized Orphanhood Mortality Estimation

Implements indirect demographic methods for estimating adult mortality from orphanhood data. The package includes the standard Brass and Hill (1973) method < https://scholar.google.com/scholar_lookup?&title=Estimating%20Adult%20Mortality%20from%20Orphanhood&pages=111-23&publication_year=1973&author=Brass%2CW.&author=Hill.%2CK.>, the regression-based approach developed by Timaeus (1992) < https://pubmed.ncbi.nlm.nih.gov/12317481/>, and the adjustments proposed by Luy (2012) for low-mortality populations. A relational model is used to harmonize estimates into comparable adult mortality indicators. The package also provides diagnostic tools to assess the sensitivity of results to assumptions about the mean age of childbearing and the choice of model life table family.


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

  • Multi-Method Estimation: Implements standard methods (Brass, Timaeus) and modern adaptations for low-mortality settings (Luy, 2012).
  • Diagnostic Suite: Tools to assess internal consistency of orphanhood-based estimates by examining the stability of the estimated mortality level (alpha) across respondent age groups, and by evaluating sensitivity to assumptions on the age pattern of mortality and the mean age of childbearing.
  • Metric Flexibility: Calculates multiple indicators simultaneously:
    • 45q15: Probability of dying between ages 15 and 60 (Standard).
    • 30q30: Probability of dying between ages 30 and 60 (Robust).
    • e30: Life expectancy at age 30 (Policy-relevant).
  • Interactive Dashboard: A built-in Shiny application for non-coders to perform analyses and sensitivity checks via a GUI.

📦 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.
  • If you use HOME in your research, please cite the working paper: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("HOME")

0.1.1 by Tamara Vaz, 4 months ago


https://github.com/tamaravaz/HOME


Report a bug at https://github.com/tamaravaz/HOME/issues


Browse source code at https://github.com/cran/HOME


Authors: Tamara Vaz [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ggplot2, gridExtra

Suggests shiny, bslib, plotly, DT, readxl, writexl, scales, testthat, knitr, rmarkdown


See at CRAN