Description Usage Arguments Value References Examples
Takes a sequence as input and find P-value for diffrent orders
1 |
seq |
- A sequence whose order to be determined |
Returns nothing but prints order of given sequence according to P-value
[1] Estimating the order of Markov chain Richard Katz Technometrics, vol 12 no 3 (August 1981) pp 243-249
[2] Determination of the Order of a Markov Chain L.C.Zhao, C.C.Y.Dorea and C.R.Goncalves Statistical inference for stochastic processes4, 2001 pp 273-282
[3] Statistical inference about Markov Chain T.W.Anderson and Leo.A.Goodman. The Annals of Mathematical Statistics, Vol 28, No 1 (March 1957), pp89-110
1 2 3 4 5 6 7 8 9 10 11 | ## Check a first order sequence
seq <- c(1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2)
getOrderPval(seq)
## Check for second order sequence
seq <- c(1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2,1,1,2,2)
getOrderPval(seq)
## Check for random order sequence
seq <- sample(1:2,50,replace=TRUE)
getOrderPval(seq)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.