data.frame or matrix of dependent variables of dimension (Txn)
exo
(optional) data.frame or matrix of exogenous variables of dimension (Txk)
st
single transition variable for all the equation of dimension (Tx1)
st.choice
boolean identifying whether the transition variable should be selected from a matrix of R potential variables of dimension (TxR)
alpha
Confidence level
Details
Given a VLSTAR model with a unique transition variable, s1t=s2t=⋯=snt=st, a generalization of the
linearity test presented in Luukkonen, Saikkonen and Terasvirta (1988) may be implemented.
Assuming a 2-state VLSTAR model, such that
yt=B1zt+GtB2zt+εt.
Where the null H0:γj=0, j=1,…,n, is such that Gt≡(1/2)/n and the
previous Equation is linear. When the null cannot be rejected, an identification problem of the parameter cj in the transition function
emerges, that can be solved through a first-order Taylor expansion around γj=0.
The approximation of the logistic function with a first-order Taylor expansion is given by
G(st;γj,cj)=(1/2)+(1/4)γj(st−cj)+rjt
=ajst+bj+rjt
where aj=γj/4, bj=1/2−ajcj and rj is the error of the approximation. If Gt is specified as follows
Gt=diag{a1st+b1+r1t,…,anst+bn+rnt}
=Ast+B+Rt
where A=diag(a1,…,an), B=diag(b1,…,bn) e Rt=diag(r1t,…,rnt), yt can be written as
yt=B1zt+(Ast+B+Rt)B2zt+εt
=(B1+BB2)zt+AB2ztst+RtB2zt+εt
=Θ0zt+Θ1ztst+εt∗
where Θ0=B1+B2′B, Θ1=B2′A and εt∗=RtB2+εt. Under the null,
Θ0=B1 and Θ1=0, while the previous model is linear, with εt∗=εt. It
follows that the Lagrange multiplier test, under the null, is derived from the score