sp.homo.test: Test for homogeneity of Markov transition probabilities...

View source: R/sp.homo.test.R

sp.homo.testR Documentation

Test for homogeneity of Markov transition probabilities across regimes.

Description

Performs the homogenity across space test for spatial markov trasntion matrix basis on Rey et al, (2016)

Usage

sp.homo.test(x, W, classes = 5, fixed = TRUE)

Arguments

x

numerical matrix of n spatial unit ans t time periods

W

an objet of listw class.

classes

a number of a numeric vector of two or more unique cut points giving the number of intervals into which x will be cut

fixed

logical, if it is TRUE the data are pooled over space and time and the quintiles calculated for the pooled data

Details

For later...

Value

A list coantaning the Q statistic, the LR statistic and matrix use as null hypotesis in the test.

References

S. J. Rey, W. Kang, and L. Wolf (2016) “The properties of tests for spatial effects in discrete Markov chain models of regional income distribution dynamics,” Journal of Geographical Systems, vol. 18, no. 4, pp. 377–398.

Examples

data(us48)
data <- as.data.frame(us48)
pci <- data[,10:90]
rpci <- pci/matrix(1,dim(pci))%*%colMeans(pci)
w1queen <- nb2listw(poly2nb(us48))
sp.homo.test(rpci,w1queen)


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