simu.tar.norm {TAR} | R Documentation |
Simulate a series from a TAR model with Gaussian distributed error.
Description
This function simulates a serie from a TAR model with Gaussian distributed error given the parameters of the model from a given threshold process
Usage
simu.tar.norm(Z, l, r, K, theta, H)
Arguments
Z |
The threshold series |
l |
The number of regimes. |
r |
The vector of thresholds for the series |
K |
The vector containing the autoregressive orders of the l regimes. |
theta |
The matrix of autoregressive coefficients of dimension |
H |
The vector containing the variance weights of the |
Details
The TAR model is given by
when for som
(
).
the
is the threshold process,
is the number of regimes,
is the autoregressive order in the regime
.
with
denote the autoregressive coefficients, while
denote the variance weights.
is the Gaussian white noise process
.
Value
The time series .
Author(s)
Hanwen Zhang <hanwenzhang at usantotomas.edu.co>
References
Nieto, F. H. (2005), Modeling Bivariate Threshold Autoregressive Processes in the Presence of Missing Data. Communications in Statistics. Theory and Methods, 34; 905-930
See Also
Examples
Z<-arima.sim(n=500,list(ar=c(0.5)))
l <- 2
r <- 0
K <- c(2,1)
theta <- matrix(c(1,-0.5,0.5,-0.7,-0.3,NA),nrow=l)
H <- c(1, 1.5)
X <- simu.tar.norm(Z,l,r,K,theta,H)
ts.plot(X)