uTAR.est: General Estimation of TAR Models

Description Usage Arguments Value Examples

Description

General estimation of TAR models with known threshold values. It perform LS estimation of a univariate TAR model, and can handle multiple regimes.

Usage

1
2
uTAR.est(y, arorder = c(1, 1), thr = c(0), d = 1, thrV = NULL,
  include.mean = c(TRUE, TRUE), output = TRUE)

Arguments

y

time series.

arorder

AR order of each regime. The number of regime is the length of arorder.

thr

given threshould(s). There are k-1 threshold for a k-regime model.

d

delay for threshold variable, default is 1.

thrV

external threhold variable if any. If it is not NULL, thrV must have the same length as that of y.

include.mean

a logical value indicating whether constant terms are included. Default is TRUE.

output

a logical value for output. Default is TRUE.

Value

uTAR.est returns a list with components:

data

the data matrix, y.

k

the dimension of y.

arorder

AR orders of regimes 1 and 2.

coefs

a (p*k+1)-by-(2k) matrices. The first row show the estimation results in regime 1, and the second row shows these in regime 2.

sigma

estimated innovational covariance matrices of regimes 1 and 2.

thr

threshold value.

residuals

estimated innovations.

sresi

standardized residuals.

nobs

numbers of observations in different regimes.

delay

delay for threshold variable.

cnst

logical values indicating whether the constant terms are included in different regimes.

AIC

AIC value.

Examples

1
2
3
4
arorder=rep(1,2)
ar.coef=matrix(c(0.7,-0.8),2,1)
y=uTAR.sim(100,arorder,ar.coef,1,0)
est=uTAR.est(y$series,arorder,0,1)

ConvFuncTimeSeries/test3 documentation built on May 29, 2019, 11:41 a.m.