ACEDuncanPoly | R Documentation |
Polycentric version of Duncan's absolute centralization index. The function can be used in two ways: to provide a vector containing the distances between spatial/organizational unit centroids or a external geographic information source (spatial object or shape file).
ACEDuncanPoly(x, dc = NULL, center = 1,
spatobj = NULL, folder = NULL, shape = NULL)
x |
an object of class matrix (or which can be coerced to that class), where each column represents the distribution of a group within spatial units. The number of columns should be greater than 1 (at least 2 groups are required). You should not include a column with total population, because this will be interpreted as a group. |
dc |
a numeric matrix/vector containing the distances between spatial units centroids and the central spatial unit(s). |
center |
a numeric vector giving the number of the spatial/organizational units that represents the centers in the table |
spatobj |
a spatial object (SpatialPolygonsDataFrame) with geographic information |
folder |
a character vector with the folder (directory) name indicating where the shapefile is located on the drive |
shape |
a character vector with the name of the shapefile (without the .shp extension). |
A numeric vector containing the Duncan's absolute polycentric centralisation index value for each group
Duncan O. D. and Duncan B. (1955) A Methodological Analysis of Segregation Indexes. American Sociological Review 41, pp. 210-217
Tivadar M. (2019) OasisR: An R Package to Bring Some Order to the World of Segregation Measurement. Journal of Statistical Software, 89 (7), pp 1-39
ACEDuncan
, ACEDuncanPolyK
,
RCE
, RCEPoly
, RCEPolyK
ACE
, ACEPoly
x <- segdata@data[ ,1:2]
foldername <- system.file('extdata', package = 'OasisR')
shapename <- 'segdata'
ACEDuncanPoly(x, spatobj = segdata, center = c(28, 83) )
ACEDuncanPoly(x, folder = foldername, shape = shapename, center = c(28, 83))
center <- c(28, 83)
polydist <- matrix(data = NA, nrow = nrow(x), ncol = length(center))
for (i in 1:ncol(polydist))
polydist[,i] <- distcenter(spatobj = segdata, center = center[i])
ACEDuncanPoly(x, dc = polydist)
distmin <- vector(length = nrow(x))
for (i in 1:nrow(polydist)) distmin[i] <- min(polydist[i,])
ACEDuncan(x, dc = distmin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.