The function implements the chi-square based test statistic for local spatial heteroscedasticity (LOSH) as proposed by Ord & Getis (2012).
LOSH.cs(x, listw, zero.policy = attr(listw, "zero.policy"), na.action = na.fail, p.adjust.method = "none", spChk = NULL)
a numeric vector of the same length as the neighbours list in listw
listw object created for example by
attr(listw, "zero.policy") as set when
listw was created, if attribute not set, use global option value; if TRUE assign zero to the lagged value of zones without neighbours, if FALSE assign NA
a function (default
na.fail), can also be
na.exclude - in these cases the weights list will be subsetted to remove NAs in the data. It may be necessary to set zero.policy to TRUE because this subsetting may create no-neighbour observations. Note that only weights lists created without using the glist argument to
nb2listw may be subsetted. If
na.pass is used, zero is substituted for NA values in calculating the spatial lag. (Note that na.exclude will only work properly starting from R 1.9.0, na.omit and na.exclude assign the wrong classes in 1.8.*)
a character string specifying the probability value adjustment for multiple tests, default "none"; see
p.adjustSP. Note that the number of multiple tests for each region is only taken as the number of neighbours + 1 for each region, rather than the total number of regions.
should the data vector names be checked against the spatial objects for identity integrity, TRUE, or FALSE, default NULL to use
expectation of LOSH
variance of LOSH
the approximately chi-square distributed test statistics
local spatially weighted mean values
residuals about local spatially weighted mean values
Hi obtained from a non-central Chi-square distribution with \(2/Var.Hi\) degrees of freedom
Ord, J. K., & Getis, A. 2012. Local spatial heteroscedasticity (LOSH), The Annals of Regional Science, 48 (2), 529--539.