Re: [R] Markov chain simulation

2014-01-28 Thread Berend Hasselman
On 28-01-2014, at 19:23, Kaptue Tchuente, Armel wrote: > Hi Kehl, > > Thank you for your reply. > > Indeed, there are many ways to simulate a markov chain sequence. > > For instance, if I assume that n=20, rnd_occ1<-c(0, 0, 0, 0, 0, 0, 1, 1, 0, > 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1) and rnd_occ

Re: [R] Markov chain simulation

2014-01-28 Thread Kaptue Tchuente, Armel
Armel; R-help@r-project.org Subject: RE: [R] Markov chain simulation Hi, see inline Feladó: r-help-boun...@r-project.org [r-help-boun...@r-project.org] ; meghatalmazó: Armel KAPTUE [armel.kap...@sdstate.edu] Küldve: 2014. január 28. 8:16 To: R-help@r-projec

Re: [R] Markov chain simulation

2014-01-28 Thread Kehl Dániel
Hi, see inline Feladó: r-help-boun...@r-project.org [r-help-boun...@r-project.org] ; meghatalmazó: Armel KAPTUE [armel.kap...@sdstate.edu] Küldve: 2014. január 28. 8:16 To: R-help@r-project.org Tárgy: [R] Markov chain simulation Hi there, I'm wond

[R] Markov chain simulation

2014-01-27 Thread Armel KAPTUE
Hi there, I'm wonder if in R there is a way to simulate a discrete Markov chains with a specific number of occurence of state knowing the transition matrixway. For example, how to simualte a markov chain of length n with p occurences (phttps://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t