Page 1 of 1

Creating a loop that specifies endogenous variables

Posted: Tue Jan 29, 2013 1:24 pm
by arthur.ray.craig
I have a model object in a work file. I am trying to create a loop that creates a list of all if the endogenous variables in the model and then creates these variables in the work space. I want all of these variables to contain zeros. This is the code I was using.

Code: Select all

%serieslist = @endoglist("baseline")

for %i {%serieslist}

{%i} = 0

next


Thanks!

Re: Creating a loop that specifies endogenous variables

Posted: Tue Jan 29, 2013 2:00 pm
by EViews Gareth
You need to put the model name in there. model.@endoglist