Seamless household epidemiological modelling with housepi
Abstract
Mathematical modelling has proven to be a valuable tool for estimating key epidemiological parameters from household transmission studies. The relative ease of sampling household data makes it a readily available source of information during the early phases of an epidemic. In addition, retrospective serological household data can provide critical insights into the history of transmission within a population. Given the well-defined contact structures and natural exposure to infection, households provide an ideal setting for evaluating the efficacy of pharmaceutical and non-pharmaceutical interventions. Despite its importance, epidemiological modelling of household transmission remains technically demanding, and accessible, well-documented inference tools are sparse. To address this gap, we introduce housepi, an open source R package for the statistical analysis and modelling of household transmission studies. The unified framework enables both simulations and Bayesian inference, with individual data augmentation to handle unobserved variables. This allows estimating infection risk factors for both final-size designs and case-ascertained longitudinal follow-ups with temporal records (such as test and onset dates). The package provides a streamlined workflow that allows users, with minimal configuration, to move from raw household data to posterior estimates of key epidemiological quantities, including secondary attack rates, and the effects of interventions and transmission risk factors, such as vaccine effectiveness. We demonstrate some capabilities of the package on publicly available datasets, covering the cases of influenza and SARS-CoV-2. Using the package routines, we validate our estimates on simulated data, and we show that fitted models can reproduce the target observations. The results are coherent with the original studies associated with the data. The modular design of housepi further facilitates extension to user-defined features, making it a versatile tool for future epidemiological investigations.
Related
- Informing an mpox stockpile investment case: epidemiological modelling and cost–benefit analysis
- Seamless Whole Slide Label-Free Virtual Staining
- Detection of Intestinal and Zoonotic Parasites and Acanthamoeba Species in Household Soils and Leafy Green Vegetables in Alto Paraná, Paraguay
- Digital financial literacy and household consumption: Total expenditure versus consumption structure in China
- Post-elimination schistosomiasis surveillance in Zhongjiang County, Sichuan, China: livestock surveillance, household livestock management, and knowledge, attitudes and practices among livestock-keeping household heads.
BibTeX
@misc{camaglia2026seamless,
title = {{Seamless household epidemiological modelling with housepi}},
author = {Francesco Camaglia and Lina Cristancho-Fajardo and Thomas Cortier and Tim K. Tsang and Paolo Bosetti and Antoine Brault and Benjamin J. Cowling and Simon Cauchemez},
howpublished = {HAL},
year = {2026},
month = nov,
url = {https://pasteur.hal.science/pasteur-05869643v1},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - Seamless household epidemiological modelling with housepi
AU - Francesco Camaglia
AU - Lina Cristancho-Fajardo
AU - Thomas Cortier
AU - Tim K. Tsang
AU - Paolo Bosetti
AU - Antoine Brault
AU - Benjamin J. Cowling
AU - Simon Cauchemez
PY - 2026
DA - 2026/11/18
PB - HAL
UR - https://pasteur.hal.science/pasteur-05869643v1
AB - Mathematical modelling has proven to be a valuable tool for estimating key epidemiological parameters from household transmission studies. The relative ease of sampling household data makes it a readily available source of information during the early phases of an epidemic. In addition, retrospective serological household data can provide critical insights into the history of transmission within a population. Given the well-defined contact structures and natural exposure to infection, households provide an ideal setting for evaluating the efficacy of pharmaceutical and non-pharmaceutical interventions. Despite its importance, epidemiological modelling of household transmission remains technically demanding, and accessible, well-documented inference tools are sparse. To address this gap, we introduce housepi, an open source R package for the statistical analysis and modelling of household transmission studies. The unified framework enables both simulations and Bayesian inference, with individual data augmentation to handle unobserved variables. This allows estimating infection risk factors for both final-size designs and case-ascertained longitudinal follow-ups with temporal records (such as test and onset dates). The package provides a streamlined workflow that allows users, with minimal configuration, to move from raw household data to posterior estimates of key epidemiological quantities, including secondary attack rates, and the effects of interventions and transmission risk factors, such as vaccine effectiveness. We demonstrate some capabilities of the package on publicly available datasets, covering the cases of influenza and SARS-CoV-2. Using the package routines, we validate our estimates on simulated data, and we show that fitted models can reproduce the target observations. The results are coherent with the original studies associated with the data. The modular design of housepi further facilitates extension to user-defined features, making it a versatile tool for future epidemiological investigations.
ER -