sim_grid_listw: Generate spatial weights matrix for a grid
Description
Create a spatial weights matrix based on a square grid structure.
Usage
sim_grid_listw(nrow, ncol = nrow, style = "W", type = c("queen", "rook"))Value
A listw object by spdep package.
Arguments
- nrow
the number of rows in the grid.
- ncol
defaults to nrow. The number columns in the grid.
- style
the spatial weights style. Defaults to row standardized. See spdep::nb2listw() for more.
- type
default "queen". Can also be "rook".