Learn R Programming

glmmBUGS (version 2.4.2)

popDataAdjMat: Data set containing an adjacency matrix

Description

The popDataAdjMat Data set contains the adjacency matrix which calculated from the poly2nb function.

Usage

data('popDataAdjMat')

Arguments

Details

It is a adjacency matrix denoting the neighbours of Ontario census subdivisions.

Examples

Run this code
# NOT RUN {
library('diseasemapping')
data('popdata')
popDataAdjMat = spdep::poly2nb(popdata,
	row.names=as.character(popdata$CSDUID))
# }
# NOT RUN {
data('popDataAdjMat')
summary(popDataAdjMat)
attributes(popDataAdjMat)$region.id[1:10]
# }

Run the code above in your browser using DataLab