moran: Univariable and Bivariable Local Moran's I

View source: R/moran.R

moranR Documentation

Univariable and Bivariable Local Moran's I

Description

Compute the Univariable (Anselin,1995) and Bivariable (cite??) Local Moran's I

Usage

moran(x, W, nsim = NULL, type = "uni", nbcom = length(W$neighbours), ...)

Arguments

x

a vector, matrix or data frame containing the variables and spatial units

W

a listw object

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 quad function. See quad for more infomation.

Details

later...

Value

a data frame or a list of data frames (more explanation in Details later)

References

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

Examples

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)


amvallone/estdaR documentation built on March 30, 2024, 9:38 p.m.