UScounties {spam} | R Documentation |
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
.
Two matrices of class spam
i
and j
element if county
i
is a neighbor of county j
.
i
and j
element if counties
i
and j
are a neighbors of county k
and counties
i
and j
are not neighbors.
# 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)