Learn R Programming

spacom (version 0.9-4)

DescribeExact: Descriptives for exact context data

Description

Computes descriptives of spatially weighted exact context data

Usage

DescribeExact(contextual.data, context.id, contextual.names,
 contextual.weight.matrices)

Arguments

contextual.data
A data.frame consisting of precise contextual indicators and a context ID variable
context.id
A character object containing the column name of the context ID variable
contextual.names
A list of column names of contextual variables to be weighted
contextual.weight.matrices
A list of square weight matrices of dimension $n\times n$, where $n$ is the number of contextual units to be applied to the variable specified in contextual.names, respectively.

Value

  • A data.frame containing the spatially weighted contextual.names.

Examples

Run this code
# 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