buildH {DIFM}R Documentation

Spatial dependence matrix of the factor loadings

Description

It computes the spatial covariance and precision matrix of the neighboring subregions using Intrinsice Autoregressive Conditional (ICAR) process.

Usage

buildH(areapoly, permutation = NA)

Arguments

areapoly

The polygon of the areas. We can obtain this through readOGR function from sp matrix.

permutation

Permutation order of the subregions

Details

The off-digonal values are -1 when two subregions are neighbors. Otherwise, we assign 0. The diagonal values are the sum of the values of its own row.

Value

A list of two matrices: Precision matrix H and the covariance matrix obtained through Moore-Penrose inverse of H.


[Package DIFM version 1.0 Index]