Skip to content

TVAR.LRtest function is only working for "1vs" but not for "2vs3" #51

@yasmine131119

Description

@yasmine131119

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

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions