[R] (R) transitions in a Markov Chain

Ben Bolker bbolker at gmail.com
Wed Mar 16 01:59:31 CET 2011


Estefania Nares <findingstefan <at> hotmail.com> writes:

> I have to generate 1000 transitions of a discrete time Markov Chain and 
> then give and estimation of the equilibrium distribution. 
> 
> I know the transition matrix.
> 
> 0.3   0.7   0
> 0.2   0.5   0.3
> 0     0.4   0.6
> Do you know how to do it with R?
> 

  This sounds like homework, and it is the policy of this
list not to give answers to homework.

  To get you started, though, see

?matrix
?"%*%"

and possibly
?eigen

   good luck
     Ben Bolker



More information about the R-help mailing list