ForecastHMMTCM: Tail conditional median (TCM) of a univariate HMM at time...

Description Usage Arguments Value Examples

View source: R/ForecastHMMTCM.R

Description

This function computes the tail conditional median of a univariate HMM at multiple times, given observations up to time n

Usage

1
ForecastHMMTCM(U, family, theta, Q, eta, k = 1)

Arguments

U

value (1 x 1) between 0 and 1

family

distribution name; run the function distributions() for help

theta

parameters; (r x p)

Q

probability transition matrix; (r x r)

eta

vector of the estimated probability of each regime at time n; (1 x r)

k

prediction times (may be a vector of integers).

Value

tcm

tail conditional median (1 x horizon)

Examples

1
2
3
4
5
6
7
8
9
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.96091218, 0.03908782)

forecastedTCM= ForecastHMMTCM(U=c(0.01), family, theta=theta, Q=Q, eta=eta, k=c(1,2,3,4,5))
print('Forecasted tail conditional mean : ')
print(forecastedTCM)

GenHMM1d documentation built on Jan. 21, 2021, 9:07 a.m.