join.d: Test the independence in the dynamics of a variable and its...

View source: R/join.d.R

join.dR Documentation

Test the independence in the dynamics of a variable and its neighbors

Description

Performes a Chi square test for test that dynamics of a variable is independent of dynamics of its neighbors.

Usage

join.d(x, W)

Arguments

x

numerical matrix of n spatial unit ans t time periods

W

an objet of listw class.

Details

The test decompose the LISA Markov chain in a pair of chains, one for the city and other for the neighbors, each chain has two states H and L and under the null of independence test the co-movement of the chains.

Value

a list coantaning

  • the Chi square statistcas and its p value

  • The LISA markov transition matrix ander the null

Examples

data(us48)
data <- as.data.frame(us48)
w1queen <- nb2listw(poly2nb(us48))
join.d(data[,10:90],w1queen)


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