Dear all,
I have the following macro, but it doesn't work as I expected:
I have gov1, gov2
and I wrote:
local dvar=" gov`j' totalassets"
local j=1
while `j'<3{
reg sales `dvar'
local j = `j' + 1
}
I expect this will run sales= gov1 totalassets and sales= gov2 totalassets, but only the first one ran twice, no second one. Anyone could help me out?
Many thanks!
Martin
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/