Dear all
I am trying to use TVAR.sim
When I use TVAR with external Threshold Variable, I cannot use TVAR.sim.
Is there anyone who can help me?
---------------- below is a part of my script ------------------------------
thVar <- data$F
sample <- data[ ,c('A', 'B', 'C', 'D', 'E')]
#1.
res <- TVAR( sample, lag=3, nthresh=1, thDelay=1, trim=0.1, thVar = thVar, plot=T)
#2.
res <- TVAR( sample, lag=3, nthresh=1, thDelay=1, trim=0.1, mth = 1, plot=T)
#2 works well. I am able to use TVAR.sim. However, I would like to use Threshold variable not in my dataset.