makeE | R Documentation |
Returns expected time in state for the m 2-state Markov transition matrices Markov transition matrices contained in the matrix or array Pi. If m>1 returns a matrix with column i being the expected time in state 1 ("unavailable") as its first element and expected time in state 2 ("available") as its second; else returns a vector.
makeE(Pi)
Pi |
either a 2x2 Markov transition probability matrix or a 2x2xm array with element [,,i] being a 2x2 Markov transition probability matrix. |
Ea=c(10,12);Eu=c(20,22)
Pi2=makePi(Eu,Ea) # make a set of transition matrices
makeE(Pi2) # recover c(Eu,Ea)
Pi1=makePi(Eu[1],Ea[1]) # make a single transition matrix
makeE(Pi1) # recover c(Eu,Ea)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.