pi.n | R Documentation |
Distribution of Xn
pi.n(n = 3, P, pi0)
n |
number of generated points MC |
P |
transition matrix |
pi0 |
initial distribution |
n=3 P= rbind(c(0.6, 0.4, 0), c(0.2, 0.6, 0.2), c(0, 0.4, 0.6)) pi0=rep(1/3, 3) pi.n(n, P, pi0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.