moran_op: The moran_op() function computes the moran operator

Usage Arguments Value Examples

Usage

1
moran_op(x_features, coord_nb)

Arguments

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

Value

A list of quantities related to the Moran Operator. NOTE: the list structure is ready to be passed to the STAN mcmc software

Examples

1
2
3
4
library(spdep); example(columbus)
x_features = columbus$AREA
coord_nb = save_coord_nb(foo_spdf=columbus)
moran_op(x_features,coord_nb)

mikejacktzen/datzen documentation built on June 14, 2019, 5:23 p.m.