UScounties {spam} | R Documentation |
Adjacency Structure of the Counties in the Contiguous United States
Description
First and second order adjacency structure of the counties
in the contiguous United States. We consider that two counties
are neighbors if they share at
least one edge of their polygon description in maps
.
Format
Two matrices of class spam
- UScounties.storder
-
Contains a one in the
i
andj
element if countyi
is a neighbor of countyj
. - UScounties.ndorder
-
Contains a one in the
i
andj
element if countiesi
andj
are a neighbors of countyk
and countiesi
andj
are not neighbors.
See Also
map
, from maps.
Examples
# number of counties:
n <- nrow( UScounties.storder)
## Not run:
# make a precision matrix
Q <- diag.spam( n) + .2 * UScounties.storder + .1 * UScounties.ndorder
display( as.spam( chol( Q)))
## End(Not run)
[Package spam version 2.10-0 Index]