quad: Quandrant Allocator

View source: R/quad.R

quadR Documentation

Quandrant Allocator

Description

Compute the position of a spatial unit and its neihbors in the MOran Scatter Plot

Usage

quad(x, W, y, geoda = TRUE)

Arguments

x

a vector

W

a listw object.

y

a vector, use it in case that the lag must be compute in another variable.

geoda

logial. If True use GeoDa quadrant scheme: HH=1, LL=2, LH=3, HL=4. If False use PySAL quadrant Scheme: HH=1, LH=2, LL=3, HL=4

Details

explain here what is the geoda

Value

a vector

Examples

data(Guerry)
w1queen<-nb2listw(poly2nb(Guerry))
quad(Guerry$pc1,w1queen)


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