The function returns Leung et al. (2000) three moment approximation for Moran's I, for a gwr object calculated with argument hatmatrix=TRUE. This implementation should not be regarded as authoritative, as it involves assumptions about implied methods and about estimated degrees of freedom.

1 | ```
gwr.morantest(x, lw, zero.policy = FALSE)
``` |

`x` |
a |

`lw` |
a |

`zero.policy` |
if TRUE assign zero to the lagged value of zones without neighbours, if FALSE (default) assign NA |

a “htest” object with the results of testing the GWR residuals

Roger Bivand

Leung Y, Mei C-L, Zhang W-X 2000 Testing for spatial autocorrelation among the residuals of the geographically weighted regression, Environment and Planning A, 32, 871-890.

1 2 3 4 5 6 7 |

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.