Computes the posterior (or smoothing) probabilities in an homogenenous HMM or MSAR model using the forwards backwards algo. 'filter_only' is an optional argument (default: 0). If 1, we do filtering, if 0, smoothing.
nhforwards_backwards(prior, transition, obslik, filter_only = 0)rior probabilities PRIOR(I) = Pr(X(1) = I)
non homogeneous transitions, one transition matrix for each time
emission probabilities OBSLIK(I,t) = Pr(Y(t) | X(t)=I)
optional argument (default: 0). If TRUE, we do filtering, if FALSE, smoothing (default).
smoothing probabilities P(X(t)|Y(0),...,Y(T))
two steps smoothing probabilities P(X(t),X(t+1)|Y(0),...,Y(T))
log likelihood
Number of regimes
intermediate component in the FB algorithm (forward)
intermediate component in the FB algorithm (backward)
fit.MSAR, Estep.MSAR