expected_mc {geostan} | R Documentation |
Expected value of the residual Moran coefficient
Description
Expected value for the Moran coefficient of model residuals under the null hypothesis of no spatial autocorrelation.
Usage
expected_mc(X, C)
Arguments
X |
model matrix, including column of ones. |
C |
Connectivity matrix. |
Value
Returns a numeric value.
Source
Chun, Yongwan and Griffith, Daniel A. (2013). Spatial statistics and geostatistics. Sage, p. 18.
Examples
data(georgia)
C <- shape2mat(georgia)
X <- model.matrix(~ college, georgia)
expected_mc(X, C)
[Package geostan version 0.8.2 Index]