Correct usage of the dofor instruction
Posted: Thu Mar 15, 2012 7:26 pm
I need to do a series of regressions by changing only one dependent variable at a time. I read the manual and I think the correct way to do it is by the dofor instruction:
Is this the correct way to use the instruction dofor? By this I needed to run 5 regressions where money is substituted in each regression for the five monetary aggregates abobe.
Code: Select all
dofor money = SUMM1 SUMM2M SUMM2 SUMMZM SUMALL
SET y = GDP_N
SET z1 = TB
SET z2 = cpi
SET z3 = money
linreg(noprint) y /RESIDS
#constant z1 z2 z3
end dofor money