join.d | R Documentation |
Performes a Chi square test for test that dynamics of a variable is independent of dynamics of its neighbors.
join.d(x, W)
x |
numerical matrix of n spatial unit ans t time periods |
W |
an objet of listw class. |
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.
a list coantaning
the Chi square statistcas and its p value
The LISA markov transition matrix ander the null
data(us48)
data <- as.data.frame(us48)
w1queen <- nb2listw(poly2nb(us48))
join.d(data[,10:90],w1queen)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.