I want to obtain the AIC, SIC and HQ value for an estimated equation using a replacement variable in a for-next loop:
Code: Select all
for %crit "@aic" "@schwarz" "@hq"
equation eq_ar.ls y c ar(1) ar(2)
scalar test_{%crit} = eq_ar.{%crit}
next
Unfortunately, this doesn't work.
I also tried:
for %crit "aic" "schwarz" "hq" ....with... scalar test_{%crit} = eq_ar.@{%crit}
But this doesn't work either. I guess the problem is the "@"...
Is there a way to make this for-next-loop work using a replacement variable for a "@"-function?
Thanks a lot for your help