I have a ARMAX Modell dlogAr=c + dlogAr(1)... + dlogMa+ dlogMa(1)+---+ dlogX+dlogX(-1)+...
dlogAR=dlexp
dlogMa=dlwk
dlogX=dleu
I will use 8 Lags because these are seasonly data.
I am searching to minimize the AIC and BIC to find the best modell for my data
now normaly I would use the Infoscrit (sorry the descriptions are in German) as below but It wont work because of the X
Does anyone knwo if there is a already writen Script for my Modell? If not how to solv my problem in a other way?
Thank you -> Eviews 8
Code: Select all
'Get information criteria
'----------------------------
'Originalprogramm von
'Ulf G. Erlandsson
'Department of Economics, Lund University
'http://www.nek.lu.se/nekuer/tsa04/additional.htm
'angepasst von gregor bäurle
'das programm berechnet eine matrix mit dem BIC und eine Matrix mit dem AIC für verschiedene ARMA modelle. es werden alle kombinationen bis zu einer maximalen ar- bzw ma-terme geschätzt.
'in den zeilen stehen die schätzung für eine zunehmende anzahl ma-terme (von null bis q) für eine fixe anzahl ar-terme
'in den spalten stehen die schätzung für eine zunehmende anzahl ar-terme (von null bis p) für eine fixe anzahl ma-terme
!maxp=8 'hier muss die maximale anzahl ar-terme eingeben werden
!maxq=8 'hier muss die maximale anzahl ma-terme eingeben werden
matrix (!maxp+1,!maxq+1) aicresults
matrix (!maxp+1,!maxq+1) sbcresults
smpl 1980q1+!maxp+1 2015q2 'das sample wird so eingestellt, dass für alle schätzungen die gleiche anzahl beobachtungen verwendet wird.
for !p=0 to !maxp
if !p=0 then
%arstring =""
else
%arstring = %arstring + "ar(" + @str(!p) + ")"
endif
for !q=0 to !maxq
if !q=0 then
%mastring =""
else
%mastring = %mastring + "ma(" + @str(!q) +")"
endif
equation eq1.ls dlogAR c {%arstring} {%mastring}
aicresults(!p+1,!q+1) = eq1.@aic
sbcresults(!p+1,!q+1) =eq1.@schwarz
next
next
smpl @all