Learn R Programming

spfilteR (version 2.1.0)

MI.local: Local Moran Coefficient

Description

Reports the local Moran Coefficient for each unit.

Usage

MI.local(x, W, alternative = "greater", na.rm = TRUE)

Value

Returns an object of class data.frame that contains the following information for each variable:

Ii

observed value of local Moran's I

EIi

expected value of local Moran coefficients

VarIi

variance of local Moran's I

zIi

standardized local Moran coefficient

pIi

p-value of the test statistic

Arguments

x

a vector

W

spatial connectivity matrix

alternative

specification of alternative hypothesis as 'greater' (default), 'lower', or 'two.sided'

na.rm

listwise deletion of observations with missing values (TRUE/ FALSE)

Author

Sebastian Juhl

References

Anselin, Luc (1991): Local Indicators of Spatial Association-LISA. Geographical Analysis, 27 (2): pp. 93 - 115.

Bivand, Roger S. and David W. S. Wong (2018): Comparing Implementations of Global and Local Indicators of Spatial Association. TEST, 27: pp. 716 - 748.

Sokal, Robert R., Neal L. Oden, Barbara A. Thomson (1998): Local Spatial Autocorrelation in a Biological Model. Geographical Analysis, 30 (4): pp. 331 - 354.

See Also

MI.vec, MI.ev, MI.sf, MI.resid, MI.decomp

Examples

Run this code
data(fakedata)
x <- fakedataset$x2

(MIi <- MI.local(x = x, W = W, alternative = "greater"))

Run the code above in your browser using DataLab