# creating precise contextual indicator Homog_00 weighted by geow_50
# (geographical proximity weights, h=50)
# load distance matrix and create weights
data(d_geo)
geow_50 <- WeightMatrix(d_geo, bandwidth=50)
# load precise contextual indicator
data(homog_census)
# create geographically weighted precise contextual indicator
homog_g50 <- DescribeExact(contextual.data=homog_census,
context.id="area",
contextual.names="Homog_00",
contextual.weight.matrices=geow_50)Run the code above in your browser using DataLab