powered by
Local spatial heteroscedacity
losh(x, nb, wt, a = 2, ...)losh_perm(x, nb, wt, a = 2, nsim = 499, ...)
losh_perm(x, nb, wt, a = 2, nsim = 499, ...)
a data.frame with columns
data.frame
hi: the observed statistic
hi
e_hi: the sample average
e_hi
var_hi: the sample variance
var_hi
z_hi the approximately Chi-square distributed test statistic
z_hi
x_bar_i: the local spatially weight mean for observation i
x_bar_i
i
ei: residuals
ei
a numeric vector.
a neighbor list for example created by st_contiguity()
st_contiguity()
a weights list for example created by st_weights()
st_weights()
the exponent applied to the local residuals
methods passed to spdep::LOSH
number of simulations to run
nb <- st_contiguity(guerry) wt <- st_weights(nb) x <- guerry$crime_pers losh(x, nb, wt) losh(x, nb, wt, var_hi = FALSE) losh_perm(x, nb, wt, nsim = 49)
Run the code above in your browser using DataLab