EQUIPOP: Stata module to construct individualized population-based spatial contexts
John Östh ()
Additional contact information
John Östh: Oslo Metropolitan University
Statistical Software Components from Boston College Department of Economics
Abstract:
equipop constructs individualized, or bespoke, spatial contexts around every observation in a georeferenced dataset. Its distinctive feature is that neighbourhood size can be set by accumulated reference population rather than by a fixed number of rows or a common geographical radius: an observation representing 600 people contributes 600 towards a requested k, so the distance needed to reach k varies with local density. The command returns that geographical reach together with contextual population totals and, when requested, group counts and shares. Several population thresholds and fixed radii may be evaluated in one call. Optional distance decay supports negative-exponential, exponential-normal, exponential-square-root, log-normal and power families, with a common bandwidth or one that varies across observations. Further options control grid resolution, treatment of the origin cell, allocation of population at the neighbourhood boundary and coordinate projection.
Language: Stata
Requires: Stata version 17 and Python packages eqipop, numpy, pandas, scipy
Keywords: spatial contexts; geography; nearest neighbors (search for similar items in EconPapers)
Date: 2026-09-30
Note: This module should be installed from within Stata by typing "ssc install equipop". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/e/equipop.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/e/equipop_knn.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/e/equipop_run.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/e/equipop.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/e/equipop_example.do program code (text/plain)
http://fmwww.bc.edu/repec/bocode/e/equipop_test_data.dta
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459913
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().