moran_op
: The moran_op() function computes the moran operatormoran_op(x_features, coord_nb)
Argument |Description
------------- |----------------
x_features
| a data.frame of features that will be coerced as.matrix
coord_nb
| a data.frame of the nb-coordinate triplets (i,j,k) returned from coordinate_nb
or listw2sn
A list of quantities related to the Moran Operator. NOTE: the list structure is ready to be passed to the STAN mcmc software
r
library(spdep); example(columbus)
x_features = columbus$AREA
coord_nb = save_coord_nb(foo_spdf=columbus)
moran_op(x_features,coord_nb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.