I want to estimate a TVAR model that includes an external threshold variable but the TVAR.LRtest function is only working for "1vs" but not for "2vs3".
#codes examples
Y<- TVAR.LRtest(X ,
lag=2,
trend=TRUE,
thVar=diff(Z),
thDelay=1,
nboot=100, plot=FALSE, trim=0.15,test="2vs3")
Error in if (round(z2[i - bestDelay], ndig) <= bestThresh) { :
missing value where TRUE/FALSE needed
I want to estimate a TVAR model that includes an external threshold variable but the TVAR.LRtest function is only working for "1vs" but not for "2vs3".
#codes examples
Y<- TVAR.LRtest(X ,
lag=2,
trend=TRUE,
thVar=diff(Z),
thDelay=1,
nboot=100, plot=FALSE, trim=0.15,test="2vs3")
Error in if (round(z2[i - bestDelay], ndig) <= bestThresh) { :
missing value where TRUE/FALSE needed