| 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
iandjelement if countyiis a neighbor of countyj. - UScounties.ndorder
-
Contains a one in the
iandjelement if countiesiandjare a neighbors of countykand countiesiandjare 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]