I want the same program, the automatic ARMA selection, but the program posted in this forum consider a regression with constant.
Here:
Code: Select all
equation {%eqname}.ls dlog({%dep}) {%regs} {%lagstring} {%mastring}
Code: Select all
{%regs}
So I want a regression without this parameter
Code: Select all
{%regs} The first conditional considers the case without ARMA terms. So the regression is with constant:
Code: Select all
if %arstring="ar(0)" and %mastring="ma(0)" then
equation {%eqname}.ls(arma=cls, optmethod=legacy) {%dep} {%regs}
endif
Code: Select all
if %arstring="ar(1)" or %arstring="ar(2)" or %arstring="ar(3)" or %arstring="ar(4)" or %mastring="ma(1)" or %mastring="ma(2)" or %mastring="ma(3)" or %mastring="ma(4)" then
equation {%eqname}.ls(arma=cls, optmethod=legacy) {%dep} {%arstring}{%mastring}
endif
