Delta: A function to compute Delta index

Description Usage Arguments Value References See Also Examples

View source: R/SegFunctions.R

Description

The Delta index is a specific application of dissimilarity index DIDuncan which simply measures the dissimilarity between the spatial distribution of a group and the spatial distribution of available land. It can be interpreted as the share of group that would have to move to achieve uniform density over all spatial units. The function can be used in two ways: to provide an area vector or a external geographic information source (spatial object or shape file).

Usage

1
Delta(x, a = NULL, spatobj = NULL, folder = NULL, shape = NULL)

Arguments

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.

a

- a numeric vector containing spatial unit areas

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).

Value

a numeric vector containing Delta index value for each group

References

Duncan O. D., Cuzzoert and Duncan B. (1961) Problems in analyzing areal data. Statistical geography, Glencoe, Illinois: The free press of Glencoe

See Also

Absolute Concentration Index: ACO

Relative Concentration Index: RCO

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
x <- segdata@data[ ,1:2]
ar <- area(segdata)
foldername <- system.file('extdata', package = 'OasisR')
shapename <- 'segdata'

Delta(x, a = ar) 

Delta(x, spatobj = segdata)

Delta(x, folder = foldername, shape = shapename) 

Example output

[1] 0.75 0.25
[1] 0.75 0.25
OGR data source with driver: ESRI Shapefile 
Source: "/usr/lib/R/site-library/OasisR/extdata", layer: "segdata"
with 100 features
It has 19 fields
[1] 0.75 0.25

OasisR documentation built on July 2, 2020, 3:14 a.m.

Related to Delta in OasisR...