Good evening,
I am still struggling with syntax for loops. How do I correct the following:
Also, how do I decide whether the appropriate loop type is "forval" or "foreach"?
Thank you,
Stan
I am still struggling with syntax for loops. How do I correct the following:
Code:
. tokenize retaustria retbelgium retdenmark retfinland retfrance retgermany retireland retitaly retnethe
> rlands retnorway retportugal retspain retsweden retswitzerland retuk
. forval i = 1/15 {
2.
. arch `i', arch(1) tarch(1) garch(1)
3.
. predict H_`i'_tarchGJR, variance
4.
. }
1 invalid name
r(198);
Thank you,
Stan

Comment