bidev: Multiscalar Typology (2 deviations)

Description Usage Arguments Value Examples

Description

Compute a multiscalar typology according to two relative deviations relative.

Usage

1
bidev(x, dev1, dev2, breaks = c(25, 50, 100), xid = NULL)

Arguments

x

a sf object including 2 deviations among gdev, tdev and sdev.

dev1

column name of the first relative deviation in x.

dev2

coumn name of the second relative deviation in x.

breaks

Distance to the index 100 (average of the context), in percentage. A vector of three values. Defaut c(25,50,100). 25 to indexes 80 and 125. 50 and 200.

xid

identifier field in x. Default the first column.

Value

a column in x including a bidev column delivering the result of the typology. Values are classified in 13 classes according to their respective position on the two selected deviations and their distance to the average.

bidev typology values :

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# bidev synthesis on general and territorial deviation (income data)
# load data
data("GrandParisMetropole")

# Prerequisite  - Compute 2 deviations
com$gdev <- gdev(x = com, var1 = "INC", var2 = "TH")
com$tdev <- tdev(x = com, var1 = "INC", var2 = "TH", key = "EPT")

# Compute bidev
com$bidev <- bidev(x = com, dev1 = "gdev", dev2 = "tdev")

MTA documentation built on Jan. 20, 2021, 5:07 p.m.