Skip to content

Commit c10ad3c

Browse files
authored
✨ Initial commit for branch "dev_james_taeuber" (ndi v0.1.6.9005) (#21)
* Added `james_taeuber()` function to compute the aspatial racial or ethnic Dissimilarity Index (*D*) based on [James & Taeuber (1985)](https://doi.org/10.2307/270845)
1 parent 3ee8a49 commit c10ad3c

17 files changed

+931
-26
lines changed

DESCRIPTION

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: ndi
22
Title: Neighborhood Deprivation Indices
3-
Version: 0.1.6.9004
4-
Date: 2024-08-23
3+
Version: 0.1.6.9005
4+
Date: 2024-08-24
55
Authors@R:
66
c(person(given = "Ian D.",
77
family = "Buller",
@@ -46,10 +46,12 @@ Description: Computes various metrics of socio-economic deprivation and disparit
4646
LC:60007089), (11) an index of spatial proximity (SP) based on White (1986)
4747
<doi:10.2307/3644339> and Blau (1977; ISBN-13:978-0-029-03660-0), (12) the
4848
aspatial racial or ethnic Isolatoin Index (xPx*) based on Lieberson (1981;
49-
ISBN-13:978-1-032-53884-6) and Bell (1954) <doi:10.2307/2574118>, and (13) the
50-
aspatial racial or ethnic Gini Index (G) based Gini (1921) <doi:10.2307/2223319>.
51-
Also using data from the ACS-5 (2005-2009 onward), the package can retrieve the
52-
aspatial income Gini Index (G) based on Gini (1921) <doi:10.2307/2223319>.
49+
ISBN-13:978-1-032-53884-6) and Bell (1954) <doi:10.2307/2574118>, (13) the
50+
aspatial racial or ethnic Gini Index (G) based Gini (1921) <doi:10.2307/2223319>,
51+
and (14) the aspatial racial or ethnic Dissimilarity Index (D) based on James &
52+
Taeuber (1985) <doi:10.2307/270845>. Also using data from the ACS-5 (2005-2009
53+
onward), the package can retrieve the aspatial income Gini Index (G) based on
54+
Gini (1921) <doi:10.2307/2223319>.
5355
License: Apache License (>= 2.0)
5456
Encoding: UTF-8
5557
LazyData: true

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export(bravo)
88
export(duncan)
99
export(gini)
1010
export(hoover)
11+
export(james_taeuber)
1112
export(krieger)
1213
export(lieberson)
1314
export(messer)

NEWS.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# ndi (development version)
22

3-
## ndi v0.1.6.9004
3+
## ndi v0.1.6.9005
44

55
### New Features
66
* Added `hoover()` function to compute the aspatial racial or ethnic Delta (*DEL*) based on [Hoover (1941)](https://doi.org/10.1017/S0022050700052980) and Duncan et al. (1961; LC:60007089)
77
* Added `white_blau()` function to compute an index of spatial proximity (*SP*) based on [White (1986)](https://doi.org/10.2307/3644339) and Blau (1977; ISBN-13:978-0-029-03660-0)
88
* Added `lieberson()` function to compute the aspatial racial or ethnic Isolation Index (_xPx\*_) based on Lieberson (1981; ISBN-13:978-1-032-53884-6) and and [Bell (1954)](https://doi.org/10.2307/2574118)
9+
* Added `james_taeuber()` function to compute the aspatial racial or ethnic Dissimilarity Index (*D*) based on [James & Taeuber (1985)](https://doi.org/10.2307/270845)
910
* Added `geo_large = 'cbsa'` for Core Based Statistical Areas, `geo_large = 'csa'` for Combined Statistical Areas, and `geo_large = 'metro'` for Metropolitan Divisions as the larger geographical unit in `atkinson()`, `bell()`, `bemanian_beyer()`, `duncan()`, `hoover()`, `lieberson()`, `sudano()`, and `white()`, `white_blau()` functions.
1011
* Thank you for the feature suggestions, [Symielle Gaston](https://orcid.org/0000-0001-9495-1592)
1112
* Added `holder` argument to `atkinson()` function to toggle the computation with or without the Hölder mean. The function can now compute *A* without the Hölder mean. The default is `holder = FALSE`.
@@ -20,8 +21,8 @@
2021
* Re-formatted code and documentation throughout for consistent readability
2122
* Renamed 'race/ethnicity' or 'racial/ethnic' to 'race or ethnicity' or 'racial or ethnic' throughout documentation to use more modern, inclusive, and appropriate language
2223
* Updated documentation about value range of *V* (White) from `{0 to 1}` to `{-Inf to Inf}`
23-
* Add examples for `hoover()` and `white_blau()` functions in vignette and README
24-
* Add example for `holder` argument in `atkinson()` function in README
24+
* Added examples for `gini()`, `james_taeuber()`, `lieberson()`, `hoover()` and `white_blau()` functions in vignette and README
25+
* Added example for `holder` argument in `atkinson()` function in README
2526
* Reformatted functions for consistent internal structure
2627
* Updated examples in vignette to showcase a larger variety of U.S. states
2728
* Updated examples in functions to better describe the metrics

R/duncan.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
#' \dontrun{
6868
#' # Wrapped in \dontrun{} because these examples require a Census API key.
6969
#'
70-
#' # Dissimilarity Index of non-Hispanic Black vs. non-Hispanic white populations
70+
#' # Dissimilarity Index (Duncan & Duncan)
71+
#' ## of non-Hispanic Black vs. non-Hispanic white populations
7172
#' ## of census tracts within counties within Georgia, U.S.A., counties (2020)
7273
#' duncan(
7374
#' geo_large = 'county',
@@ -323,7 +324,7 @@ duncan <- function(geo_large = 'county',
323324
## Compute
324325
out_tmp <- out_dat %>%
325326
split(., f = list(out_dat$oid)) %>%
326-
lapply(., FUN = d_fun, omit_NAs = omit_NAs) %>%
327+
lapply(., FUN = ddd_fun, omit_NAs = omit_NAs) %>%
327328
utils::stack(.) %>%
328329
dplyr::mutate(
329330
D = values,

0 commit comments

Comments
 (0)