Usage
localmoran.sad(model, select, nb, glist=NULL, style="W",
zero.policy=NULL, alternative="greater", spChk=NULL,
resfun=weighted.residuals, save.Vi=FALSE,
tol = .Machine$double.eps^0.5, maxiter = 1000, tol.bounds=0.0001,
save.M=FALSE, Omega = NULL)## S3 method for class 'localmoransad':
print(x, ...)
## S3 method for class 'localmoransad':
summary(object, ...)
## S3 method for class 'summary.localmoransad':
print(x, ...)
listw2star(listw, ireg, style, n, D, a, zero.policy=NULL)
Arguments
model
an object of class lm
returned by lm
(assuming no global spatial autocorrelation), or an object of class sarlm
returned by a spatial simultaneous autoregressive model fit (assuming global spatial autocorrelation repr
select
an integer vector of the id. numbers of zones to be tested; if missing, all zones
nb
a list of neighbours of class nb
glist
a list of general weights corresponding to neighbours
style
can take values W, B, C, and S
zero.policy
default NULL, use global option value; if TRUE assign zero to the lagged value of zones without
neighbours, if FALSE assign NA
alternative
a character string specifying the alternative hypothesis,
must be one of greater (default), less or two.sided.
spChk
should the data vector names be checked against the spatial objects for identity integrity, TRUE, or FALSE, default NULL to use get.spChkOption()
resfun
default: weighted.residuals; the function to be used to extract residuals from the lm
object, may be residuals
, weighted.residuals
, rstandard
, or rstudent
save.Vi
if TRUE, return the star-shaped weights lists for each zone
tested
tol
the desired accuracy (convergence tolerance) for uniroot
maxiter
the maximum number of iterations for uniroot
tol.bounds
offset from bounds for uniroot
save.M
if TRUE, save a list of left and right M products in a list for the conditional tests, or a list of the regression model matrix components
Omega
A SAR process matrix may be passed in to test an alternative hypothesis, for example Omega <- invIrW(listw, rho=0.1); Omega <- tcrossprod(Omega)
, chol()
is taken internally
object
object to be summarised
...
arguments to be passed through
listw
a listw
object created for example by nb2listw
n
internal value depending on listw and style
D
internal value depending on listw and style
a
internal value depending on listw and style