Description Usage Arguments Value Author(s) References Examples
This step-2 function should be used to create spatially weighted context data when contextual indicators are directly available as precise macro-level measures (e.g., population values based on census or registry data, or precise geographic measures). The generated context data can be adjusted by user-defined population weights.
1 2 3 4 5 |
precise.data |
A |
context.id |
The name of the context ID variable. This variable allows matching
contextual units from different data sets ( |
contextual.names |
A |
contextual.weight.matrices |
A |
population.weight.names |
A |
A data.frame
containing the spatially weighted contextual.names
.
Till Junge, Sandra Penic, Guy Elcheroth
Elcheroth, G., Penic, S., Fasel, R., Giudici, F., Glaeser, S., Joye, D., Le Goff, J.-M., Morselli, D., & Spini, D. (2012). Spatially weighted context data: a new approach for modelling the impact of collective experiences. LIVES Working Papers, 19.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Creating spatially weighted precise contextual indicator - spatially weighted
## ethnic homogeneity across TRACES areas.
## This is step-2 function
## Step 1: Load distance matrix and create weights
data(d_geo)
geow.50 <- WeightMatrix(d_geo, bandwidth=50)
## Step 2: Load dataframe with precise contextual indicator and
## create spatially weighted indicator
data(homog_census)
homog.g50 <- SpawExact(precise.data=homog_census,
context.id="area.name",
contextual.names="Homog_00",
contextual.weight.matrices=geow.50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.