Hi all,

I am new to R. Can someone please give me some hints in how to do the
following things:

1- Get ONE permutation of a set. I have looked at the gregmisc package's
permutations() method, but I just want to get one permutation at a time. 

2- Simulate a Markov chain in R. For instance, I want to simulate the simple
random walk problem, in which a person can walk randomly around 4 places. I
know how to set up the transition matrix in R. I'm stuck at what to do next.

I'm grateful if someone can give me hint or a pointer.

Thanks.

Martin 
-- 
View this message in context: 
http://old.nabble.com/how-to-permute%2C-simulate-Markov-chain-tp26363411p26363411.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

Reply via email to