powered by
Expected value for the Moran coefficient of model residuals under the null hypothesis of no spatial autocorrelation.
expected_mc(X, C)
Returns a numeric value.
model matrix, including column of ones.
Connectivity matrix.
data(georgia) C <- shape2mat(georgia) X <- model.matrix(~ college, georgia) expected_mc(X, C)
Run the code above in your browser using DataLab