[R] Calculating transition probabilties

2014-05-13 Thread Baba Bukar
Dear all, I am new to R and have some problem computing transition probabilities. My problem goes like this; data_set - c(2,0,45,6,78,3,0,2,6,0,5,8,0,2,8,9,12,212,22,4,1,0,3,5,88,5,69,12,4,0,0,0,0,4,87,6,99,104,22,7) observations greater than, say 3, is considered as useful (denoted as 1) while

Re: [R] Calculating transition probabilties

2014-05-13 Thread Suzen, Mehmet
This looks like this is your homework about Markov chains. not an R question actually. But have a look at the markovchain package from CRAN: http://cran.r-project.org/web/packages/markovchain/vignettes/an_introduction_to_markovchain_package.pdf On 13 May 2014 16:49, Baba Bukar bbu...@nda.edu.ng

Re: [R] Calculating transition probabilties

2014-05-13 Thread David Winsemius
On May 13, 2014, at 7:49 AM, Baba Bukar wrote: Dear all, I am new to R and have some problem computing transition probabilities. My problem goes like this; data_set - c(2,0,45,6,78,3,0,2,6,0,5,8,0,2,8,9,12,212,22,4,1,0,3,5,88,5,69,12,4,0,0,0,0,4,87,6,99,104,22,7) observations greater