sp.mkv | R Documentation |
Compute the Spatial Markov transition probability matrix (Rey,2001)
sp.mkv(m, W, classes = 5, fixed = TRUE)
m |
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 |
for later..
a list contaning the markov's trantiional matrix and the markov's transition probability matrix
Rey, S.J. (2001) “Spatial empirics for economic growth and convergence”, 34 Geographical Analysis, 33, 195-214.
data(us48)
data <- as.data.frame(us48)
pci <- data[,10:90]
rpci <- pci/matrix(1,dim(pci))%*%colMeans(pci)
w1queen <- nb2listw(poly2nb(us48))
sp.mkv(rpci,w1queen)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.