Learn R Programming

geostan (version 0.8.1)

expected_mc: 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)

Value

Returns a numeric value.

Arguments

X

model matrix, including column of ones.

C

Connectivity matrix.

Examples

Run this code
data(georgia)
C <- shape2mat(georgia)
X <- model.matrix(~ college, georgia)
expected_mc(X, C)

Run the code above in your browser using DataLab