AutoWMM and JAGStree - R packages for Population Size Estimation on Relational Tree-Structured Data Publication type: PREPRINT

Mallory J Flynn, Paul Gustafson, M.J. Flynn, P. Gustafson · 2025

Read AutoWMM and JAGStree - R packages for Population Size Estimation on Relational Tree-Structured Data Publication type: PREPRINT by Mallory J Flynn, Paul Gustafson, M.J. Flynn, P. Gustafson (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2506-21023.txt.

Introduction

Flynn and Gustafson present in 2025 two R software packages that make population size estimation on tree-structured data easier. The weighted multiplier method extends back-calculation by combining counts and proportions from subgroups arranged in a tree. Bayesian models can do the same job, but they are hard to build by hand. The computation burden has limited wider use of both approaches.

Their package AutoWMM automates the multiplier method for any tree shape. JAGStree writes the needed JAGS modeling code for Bayesian fits on the same networks. The authors aim to open these methods to researchers in fields where hidden population sizes matter.

Catalog record

CREATORMallory J Flynn, Paul Gustafson, M.J. Flynn, P. Gustafson
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE54 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2506-21023

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

AutoWMM and JAGStree - R packages for Population Size Estimation on Relational Tree-Structured Data Publication type: PREPRINT Mallory J Flynn, Paul Gustafson, M.J. Flynn, P. Gustafson Abstract The weighted multiplier method (WMM) is an extension of the traditional method of back-calculation method to estimate the size of a target population, which synthesizes available evidence from multiple subgroups of the target population with known counts and estimated proportions by leveraging the tree-structure inherent to the data. Hierarchical Bayesian models offer an alternative to modeling population size estimation on such a structure, but require non-trivial theoretical and practical knowledge to implement. While the theory underlying the WMM methodology may be more accessible to researchers in diverse fields, a barrier still exists in execution of this method, which requires significant computation. We develop two R packages to help facilitate population size estimation on trees using both the WMM and hierarchical Bayesian modeling; AutoWMM simplifies WMM estimation for any general tree topology, and JAGStree automates the creation of suitable JAGS MCMC modeling code for these same networks. keywords Bayesian modeling; weighted multiplier method; population estimation; tree; network; R library † † copyright-year: 2025 † † startpage: 1 † † corresponding: Mallory Flynn, † † citation: ), , , . † † copyright: , and ( † † year: 2025 † † ctitle: AutoWMM and JAGStree - R packages for Population Estimation on Tree-Structured Data † † cjournal: Preprint † † cvolume: 2025;02:1–18 Mallory J Flynn et al \presentaddress Department of Statistics, Faculty of Science, University of British Columbia, 2207 Main Mall, Vancouver, BC, V6T 1Z4, Canada 0 0 footnotetext: Abbreviations: MM, multiplier method; WMM, weighted multiplier method 1 Introduction Population size estimation is of interest in many disciplines. Key populations may be partially hidden from data for a variety of reasons, yet the magnitude of these populations is important to inform policy makers and other stakeholders. While many factors contributing to undercounting of a given target population are known, the effect of these factors are often complex and multi-faceted. The multiplier method is a commonly applicable back-calculation estimation method, due to it’s simplicity and wide applicability using existing data. In its most general form, a service or unique object identifier is distributed to individuals of a target population, which need not be random. For example, in public health ? , some service or trait may serve as a unique identifier defining a subpopulation. The count of individuals receiving this service or unique object is then used with an independent, representative estimate of the proportion of the population receiving the service or unique object, to obtain a size estimate of the target population ? . While the multiplier method makes it possible to exploit existing information to formulate population size estimates, it is sensitive to the accuracy of both marginal counts and proportion estimates, and will not produce reliable or robust population size estimates with poor quality or variable data ? . Traditionally, back-calculated estimates generated using the multiplier method have used the count of a single sub-population of the target population; in practice, multiple sub-populations with corresponding estimates of proportions may be available, and the weighted multiplier method (WMM) is a more suitable approach ? . A fully Bayesian approach also provides a framework capable of generating target population size estimates, and is also used to estimate the impact of intervention strategies or therapies ??? . A hierarchical Bayesian model is inherently well suited to synthesizing expert knowledge and data from multiple sources to make inference on model values and parameters ?????? . While Bayesian methods are more robust to variations in available data or unrepresentative sources, models must often be tailored to the specific problems at hand, requiring non-trivial theoretical and practical knowledge to implement. Where this is difficult or infeasible, the WMM is an attractive alternative. The method is simpler to understand and implement than Bayesian modeling, but incorporates several favourable Bayesian attributes. Since all observed leaf nodes can be paired with the respective branching proportions to generate a root population size estimate, multiple sources of evidence which draw on prior knowledge are similarly synthesized, and the underlying network structure is also leveraged ? . Here, we develop an R package, called AutoWMM , which facilitates ease of use of this methodology, making it simple to implement on any general tree structure. For estimation for which a hierarchical Bayesian model is required or preferable, one barrier to implementation is the development of modeling code which represents the conditional structure of the tree and the distributions associated with both latent and observed nodes and branches, while satisfying the formatting needs of the underlying MCMC sampling program. A growing number of resources are being developed to assist with code development ? . Since this topology admits a commonly applicable framework for population size estimation problems, we similarly construct an R package which automates the creation of suitable JAGS MCMC modeling code, called JAGStree , removing this barrier to implementation of hierarchical Bayesian models. These packages may be readily downloaded ?? and used for population estimation on tree-structured data. In a companion paper, we describe the underlying theory behind both the multiplier-based methodology and the hierarchical Bayesian model ? . In another companion paper, we use the methodology to estimate the number of opioid overdoses events in the province of British Columbia, Canada, over a specified calendar period ? . 2 Root Population Size Estimation on Trees Suppose multiple subsets of a target population have known or estimated size and are mutually exclusive. Then a tree can be constructed using the known data, with the root representing the target population, leaves as sub-populations of the root, and possible inner path nodes further describing nested subgroups. Nodes may be partially or wholly observed, with directed edges associated with the proportion of the parent node population belonging to the child node population. The tree structure can then be exploited to combine all observed evidence to generate an optimal estimate of the target population, given the constraints of the data. 2.1 Overview of Bayesian Methodology and JAGS Suppose we are interested in the distribution of a parameter or hypothesis, \theta , given a set of observed data, \mathcal{D} . By incorporating past knowledge about \theta through a choice of prior distribution , p(\theta) , conditional on some set of hyperparameters \alpha , an application of Bayes theorem dictates that p(\theta|\mathcal{D})=\frac{p(\mathcal{D}|\theta)\cdot p(\theta)}{p(\mathcal{D})}, where p(\mathcal{D}|\theta) is the likelihood of the observed data and p(\theta|\mathcal{D}) is the posterior distribution ? . The marginal likelihood , p(\mathcal{D}) , is often difficult to compute as the integral cannot necessarily be solved in closed form in the continuous case, while in the discrete case, it may involve summing over infinitely many values \theta . Fortunately, it does not depend on \theta ; thus a commonly used representation of the posterior distribution is through the expression p(\theta|\mathcal{D})\propto p(\mathcal{D}|\theta)\cdot p(\theta). (2.1) A closed form of p(\theta|\mathcal{D}) is often not obtainable, and numerical approximation techniques are used in place of exact solutions. Typically, Bayesian methods are implemented using Markov chain Monte Carlo (MCMC) sampling, where a Monte Carlo random simulation is performed using a Markov chain to explore the state space. After specifying the model and a

Read the complete text