powered by
Computes \(\Pr(S_t = j \mid X_1, ..., X_T)\)
stateprobs(delta, Gamma, allprobs)
Matrix of conditional state probabilities of dimension c(n,N)
Initial or stationary distribution of length N
Transition probability matrix of dimension c(N,N)
Matrix of state-dependent probabilities/ density values of dimension c(n, N)
Gamma = tpm(c(-1,-2)) delta = stationary(Gamma) allprobs = matrix(runif(200), nrow = 100, ncol = 2) probs = stateprobs(delta, Gamma, allprobs)
Run the code above in your browser using DataLab