A simple function to compute Geary's C, called by `geary.test`

and `geary.mc`

;

*C = \frac{(n-1)}{2∑_{i=1}^{n}∑_{j=1}^{n}w_{ij}}
\frac{∑_{i=1}^{n}∑_{j=1}^{n}w_{ij}(x_i-x_j)^2}{∑_{i=1}^{n}(x_i - \bar{x})^2}
*

`geary.intern`

is an internal function used to vary the similarity
criterion.

1 |

`x` |
a numeric vector the same length as the neighbours list in listw |

`listw` |
a |

`n` |
number of zones |

`n1` |
n - 1 |

`S0` |
global sum of weights |

`zero.policy` |
default NULL, use global option value; if TRUE assign zero to the lagged value of zones without neighbours, if FALSE assign NA |

a list with

`C` |
Geary's C |

`K` |
sample kurtosis of x |

Roger Bivand Roger.Bivand@nhh.no

Cliff, A. D., Ord, J. K. 1981 Spatial processes, Pion, p. 17.

`geary.test`

, `geary.mc`

,
`sp.mantel.mc`

1 2 3 4 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.