In the 2ndEdn, Example 2.4 p.57, how do I get exactly the same results as @bjautofit? I've tried adding maxl and different dates in the do loop version.
Code: Select all
boxjenk(noprint,constant,ar=p,ma=q,maxl) dly 1961:1 *Amarjit
Moderator: TomDoan
Code: Select all
boxjenk(noprint,constant,ar=p,ma=q,maxl) dly 1961:1 *Code: Select all
@bjautofit(constant,pmax=3,qmax=3,crit=aic) dly 1960:2 2012:4Code: Select all
do q=0,3
do p=0,3
boxjenk(noprint,constant,ar=p,ma=q,maxl) dly 1961:1 2012:4
com aic=-2*%logl+%nreg*2
com sbc=-2*%logl+%nreg*log(%nobs)
disp "Order("+p+","+q+")" "AIC=" aic "SBC=" sbc "OK" %converged
end do p
end do qCode: Select all
do q=0,3
do p=0,3
boxjenk(noprint,constant,ar=p,ma=q,maxl) dly 1960:2 2012:4
com aic=-2*%logl+((p+q)*2.0)
disp "Order("+p+","+q+")" "AIC=" aic "OK" %converged
end do p
end do q
*