geary | R Documentation |
Compute the univariable Anselin (1995) and multivarible Anselin (2017) Geary's C statistic
geary(x, W, nsim = NULL, type = "uni", nbcom = length(W$neighbours), ...)
x |
a ventor, matrix or data frame containing the variables and spatial units |
W |
a |
nsim |
number of random permutations used to the compute the pseudo p value. By default it is NULL |
type |
a character indicating the Geary's C to be compute. If it is set as "uni" the standart Geary's C statistic is calulated. Set type as "multi" to cumpute the multivariable Geary's C. |
nbcom |
number of comparisons use in the Bonferroni multiple comparisons correction. By default it is set aas the number of spatial unit to use. |
... |
other argument to |
later...
a data frame (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 Anselin, L (2017). A Local Indicator of Multivariate Spatial Association: Extending Geary’s c. Center for Spatial Data Science working papers. University of Chicago.
data(Guerry)
w1queen<-nb2listw(poly2nb(Guerry))
pcc <- cbind(Guerry$pc1,Guerry$pc2)
## Not run: e1 <- geary(Guerry$pc1,w1queen,nsim=999)
e2 <- geary(pcc,w1queen,nsim=999)
e3 <- geary(pcc,w1queen,type="multi",nsim=999)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.