How do I append an equation to a group in a loop?
Posted: Wed Sep 02, 2015 3:41 pm
For example, in this code:
the result is a model with only one equation, because the model is overwritten by each group statement in the loop. How do I append equations to a model, in a loop or otherwise?
Code: Select all
dofor s = gdp cons gce gov
linreg(define = eq) s
# unemp{1 to 4}
group my_model eq>>s
end dofor s
display %modelsize(my_model)