GARCH unit root
Posted: Tue Sep 21, 2010 4:27 pm
i am trying to run a GARCH unit root test for one variable where dls represents the de-trended log of stock price and lstock is the log of stock,
my main problem is how to make the program include cases like arch(0,1) and arch(1,0). When I use the command for !k= 0to 9 it will not run the program.
Second question, how to output the largest value of AIC from my matrices and which lags it belongs to.
my main problem is how to make the program include cases like arch(0,1) and arch(1,0). When I use the command for !k= 0to 9 it will not run the program.
Second question, how to output the largest value of AIC from my matrices and which lags it belongs to.
Code: Select all
for !k=1 to 9
matrix(9,9) nls
for !i=1 to 9
for !j=1 to 9
equation eq!i!j!k.arch(!i,!j) dls lstock(-1) dls(-1 to -!k) c t
nls!k(!i,!j)=eq!i!j!k.@aic
next
next
next