mkv | R Documentation |
Compute thre Markov transition probability matrix
mkv(m, classes = 5, fixed = FALSE, type = 7, ...)
m |
numerical matrix of n spatial unit ans t time periods |
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 |
type |
an integer between 1 and 9 selecting one of the nine quantile algorithms detailed below to be used. For more information see the quantile fuction |
... |
other argumnt to |
a list contaning the markov's trantiiona matrix and the markov's transition probability matrix
data(us48)
data <- as.data.frame(us48)
pci <- data[,10:90]
rpci <- pci/matrix(1,dim(pci))%*%colMeans(pci)
m<-mkv(rpci)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.