moran | R Documentation |
Compute the Univariable (Anselin,1995) and Bivariable (cite??) Local Moran's I
moran(x, W, nsim = NULL, type = "uni", nbcom = length(W$neighbours), ...)
x |
a vector, matrix or data frame containing the variables and spatial units |
W |
a |
nsim |
number of random permutation used to the compute the pseudo p value. By default it is NULL |
type |
a character indicating the local Moran's I to be compute. If it is set as "uni" the standard local Moran's I statistic is calulated. Set type as "multi" to cumpute the bivariable local Moran's I. |
nbcom |
number of comparisons use in the Bonferroni multiple comparisons correction. By default it is set as the number of spatial unit to use. |
... |
other argument to |
later...
a data frame or a list of data frames (more explanation in Details later)
Anselin, L. (1995). Local Indicators of Spatial Association—LISA. Geographical Analysis, 27(2), 93–115. https://doi.org/10.1111/j.1538-4632.1995.tb00338.x
data(Guerry)
w1queen<-nb2listw(poly2nb(Guerry))
pcc <- cbind(Guerry$pc1,Guerry$pc2)
## Not run: e4 <- moran(Guerry$pc1,w1queen,nsim=999)
e6 <- moran(pcc,w1queen,type="multi",nsim=999,geoda=FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.