localmoranhuber: Local Moran-Huber's I statistic

View source: R/localmoranhuber.R

localmoranhuberR Documentation

Local Moran-Huber's I statistic

Description

The local spatial statistic Moran-Huber's I is calculated for each zone based on the spatial weights object used. The values returned include a Z-value, and may be used as a explorative analysis tool.

Usage

localmoranhuber(x, listw, nsim = 1000)

Arguments

x

a numeric vector the same length as the neighbours list in spdep listw

listw

a listw object created with spdep for example by spdep::nb2listw

nsim

number of permutations

Value

A list with letters and numbers.

  • Ii - local moran-huber statistic

  • E.Ii - permutation sample mean

  • Var.Ii - permutation sample standard deviation

  • Z.Ii - permutation sample means and standard deviations

  • Pr - P-value

Examples

localmoranhuber(sampledata$x, sampledata$w)

vincnardelli/robspdep documentation built on April 11, 2024, 10:30 a.m.