Dear Statalist community,
I have the following code that I am running on foreach:
After executing, Stata is showing me the error (198) ' invalid name. I can't workout where the problem is.
Thanks.
Ashvinder
I have the following code that I am running on foreach:
Code:
foreach y in trade tariff_s tariff_w freedom { foreach x in suffrage_dummy1 suffrage_dummy2 suffrage_dummy3 suffrage_dummy4 suffrage_dummy5 suffrage_dummy6 suffrage_dummy7 suffrage_dummy8 suffrage_dummy9 { areg `y' `x', a(country) outreg2 using regression_table`y'_`x'.doc areg `y' L3.'x' L2.'x' L1.'x' 'x' F1.'x' F2.'x' F3.'x', a(country) outreg2 using regression_table`y'_`x'.doc } }
Thanks.
Ashvinder
Comment