pn2pw {countHMM} | R Documentation |
Transforming natural parameters to working parameters. Not intended to be run by the user (internal function, called by the functions nLogLike
and fitMod
).
pn2pw(N,probs,gamma,delta,stationary)
N |
Number of states. |
probs |
Matrix with |
gamma |
Transition probability matrix of the Markov chain underlying the observed counts with |
delta |
Initial distribution vector of length |
stationary |
Logical, determines whether the initial distribution of the Markov chain underlying the observed counts is the stationary distribution. |
A vector of working parameters.
# transforming natural parameters to working paramters
pn2pw(N=2,probs=cbind(dpois(x=0:41,lambda=14),dpois(x=0:41,lambda=26)),
gamma=matrix(c(0.95,0.05,0.05,0.95),ncol=2),delta=NULL,stationary=TRUE)