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

expected_mc(X, C)

Source

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

Arguments

X

model matrix, including column of ones.

C

Connectivity matrix.

Value

Returns a numeric value.

Examples

data(georgia)
C <- shape2mat(georgia)
X <- model.matrix(~ ICE + college, georgia)
expected_mc(X, C)