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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.