The skeleton of a TAR model is obtained by suppressing the noise term from the TAR model.
tar.skeleton(object, Phi1, Phi2, thd, d, p, ntransient = 500, n = 500,
xstart, plot = TRUE,n.skeleton = 50)
a TAR model fitted by the tar function; if it is supplied, the model parameters and initial values are extracted from it
the burn-in size
sample size of the skeleton trajectory
the coefficient vector of the lower-regime model
the coefficient vector of the upper-regime model
threshold
delay
maximum autoregressive order
initial values for the iteration of the skeleton
if True, the time series plot of the skeleton is drawn
number of last n.skeleton points of the skeleton to be plotted
A vector that contains the trajectory of the skeleton, with the burn-in discarded.
The two-regime Threshold Autoregressive (TAR) model is given by the following
formula:
Tong, H. (1990) "Non-linear Time Series, a Dynamical System Approach," Clarendon Press Oxford. "Time Series Analysis, with Applications in R" by J.D. Cryer and K.S. Chan
# NOT RUN {
data(prey.eq)
prey.tar.1=tar(y=log(prey.eq),p1=4,p2=4,d=3,a=.1,b=.9,print=TRUE)
tar.skeleton(prey.tar.1)
# }
Run the code above in your browser using DataLab