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
