SPEW: Synthetic Populations and Ecosystems of the World
Agent-based models (ABMs) simulate interactions between autonomous agents in constrained environments over time and are often used for modeling the spread of infectious diseases. ABMs use information about agents and their environments as input, together referred to as a “synthetic ecosystem.” Previous approaches for generating synthetic ecosystems have some limitations: they are not open-source, cannot be adapted to new or updated input data sources, or do not allow for alternative methods for sampling agent characteristics and locations. We introduce a general framework for generating synthetic ecosystems, called “Synthetic Populations and Ecosystems of the World” (SPEW). SPEW lets researchers choose from a variety of sampling methods for agent characteristics and locations and is implemented as an open-source R package. We analyze the accuracy and computational efficiency of SPEW, given different sampling methods for agent characteristics and locations, and provide a suite of statistical and graphical tools to screen our generated ecosystems. SPEW has generated over five billion human agents across approximately 100,000 geographic regions in over 70 countries available online.