Creating a loop that specifies endogenous variables

For technical support, tips and tricks, suggestions, or any other information regarding the EViews model object.

Moderators: EViews Gareth, EViews Moderator

arthur.ray.craig
Posts: 2
Joined: Mon Nov 19, 2012 11:27 am

Creating a loop that specifies endogenous variables

Postby arthur.ray.craig » Tue Jan 29, 2013 1:24 pm

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!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13305
Joined: Tue Sep 16, 2008 5:38 pm

Re: Creating a loop that specifies endogenous variables

Postby EViews Gareth » Tue Jan 29, 2013 2:00 pm

You need to put the model name in there. model.@endoglist
Follow us on Twitter @IHSEViews


Return to “Models”

Who is online

Users browsing this forum: No registered users and 14 guests