Em 31 de janeiro de 2011Allin Cottrell <cottrell(a)wfu.edu> escreveu:
(...)
Why are you using two loops? Conceptually, there's only one:
loop foreach i Variables -q
adf lag $i --c --test-down
ADF[i,] = $test ~ $pvalue
endloop
You should use "$i" (and the like) _only_ when you need string
substitution (as in the adf command): otherwise use plain "i"
(as in matrix indexation) to get the numerical value.
Sorry for my silly question :) I didn't know "$i" is only for strings. Now
my script is working just fine. Thanks Allin!
Best,
--
*Henrique C. de Andrade*
Doutorando em Economia Aplicada
Universidade Federal do Rio Grande do Sul
www.ufrgs.br/ppge