powered by
This function computes the predicted probabilities of the regimes for a new observation of a univariate HMM, given observations up to time n
ForecastHMMeta(ynew, ZI = 0, family, theta, Q, eta)
predicted probabilities of the regimes
new observations
1 if zero-inflated, 0 otherwise (default)
distribution name; run the function distributions() for help
parameters; (r x p)
probability transition matrix for the regimes; (r x r)
vector of the estimated probability of each regime at time n; (1 x r)
family = "gaussian" theta = matrix(c(-1.5, 1.7, 1, 1),2,2) Q = matrix(c(0.8, 0.3, 0.2, 0.7), 2, 2) eta = c(0.96, 0.04) ForecastHMMeta(1.5, 0, family, theta, Q, eta)
Run the code above in your browser using DataLab