expected_mc function

Expected value of the residual Moran coefficient

Expected value of the residual Moran coefficient

Expected value for the Moran coefficient of model residuals under the null hypothesis of no spatial autocorrelation.

Source

Chun, Yongwan and Griffith, Daniel A. (2013). Spatial statistics and geostatistics. Sage, p. 18.

expected_mc(X, C)

Arguments

  • X: model matrix, including column of ones.
  • C: Connectivity matrix.

Returns

Returns a numeric value.

Examples

data(georgia) C <- shape2mat(georgia) X <- model.matrix(~ college, georgia) expected_mc(X, C)
  • Maintainer: Connor Donegan
  • License: GPL (>= 3)
  • Last published: 2024-12-04