Neighborhood Deprivation Indices
Overview
Computes various geospatial indices of socioeconomic deprivation and disparity in the United States. Some indices are considered "spatial" because they consider the values of neighboring (i.e., adjacent) census geographies in their computation, while other indices are "aspatial" because they only consider the value within each census geography. Two types of aspatial neighborhood deprivation indices (NDI) are available, including: (1) based on Messer et al. (2006) doi:10.1007/s11524-006-9094-x and (2) based on Andrews et al. (2020) doi:10.1080/17445647.2020.1750066 and Slotman et al. (2022) doi:10.1016/j.dib.2022.108002 who use variables chosen by Roux and Mair (2010) doi:10.1111/j.1749-6632.2009.05333.x. Both are a decomposition of multiple demographic characteristics from the U.S. Census Bureau American Community Survey 5-year estimates (ACS-5; 2006-2010 onward). Using data from the ACS-5 (2005-2009 onward), the package can also compute indices of racial or ethnic residential segregation, including but limited to those discussed in Massey & Denton (1988) doi:10.1093/sf/67.2.281, and additional indices of socioeconomic disparity.
New Features
- None
Updates
- Updated
expect_silent()tests toexpect_no_error()based on issue (#37) raise by Roger Bivand which was misleading for reverse dependency checks - Fixed typo in CITATION and 'powell_wiley.Rd'
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 27 (1 internal)includes a package overview page
- Examples that run
- 12%3 run in a plain check · 23 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 93%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- 0
6 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/idblr/ndi on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
Dependencies
Installing ndi adds 121 packages (66 with compiled code, 105 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.2Latest
- RR 4.6.0 released · 2026-04-24
- 0.2.12025-09-05 · diff ↗ ·
added 13 exports
denton, denton_cuzzort, duncan_cuzzort, duncan_duncan, hoover, james_taeuber, lieberson, massey, massey_duncan, morgan_denton, morgan_massey, theil, white_blau - RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.1.52024-01-23 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.02022-08-13
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-08-13
- Total releases
- 8 / 4 yrs
- License
- Apache License (>= 2.0)
- Minimum R
- ≥ 3.5.0
- Bundled data
- 31 KB / 1 file
- Download size
- 1.3 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("ndi")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/cran.package.ndi, 10.1016/0022-0531(70)90039-6, 10.1093/sf/67.2.281, 10.2307/2088328, 10.2307/270845, 10.2307/2223319, 10.3390/ijerph18179384, 10.1080/0022250x.1971.9989795, 10.1136/jech-2015-205728, 10.2105/ajph.2015.302955, 10.1158/1055-9965.epi-16-0926, 10.2307/2084686, 10.1016/j.healthplace.2012.09.015, 10.1007/s11524-006-9094-x, 10.1080/17445647.2020.1750066, 10.1016/j.dib.2022.108002, 10.1086/221609, 10.1016/j.sste.2011.06.002, 10.2307/3644339, 10.2307/2574118.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.