Equation access in model

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

Katjes
Posts: 56
Joined: Thu Oct 02, 2008 5:46 am

Equation access in model

Postby Katjes » Thu May 23, 2013 12:20 am

Using EViews 8, assume:

Code: Select all

 %model="m"
model {%model}
{%model}.merge eq_v1
{%model}.merge eq_v2
{%model}.append x=y+c
string test={%model}.@endoglist  'Lists all Endogeneous variables

While test lists all variables (v1, v2, x), I'm only interested in a string including v1 and v2.
Is there a way to access the equations in a model?

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

Re: Equation access in model

Postby EViews Gareth » Thu May 23, 2013 7:52 am

model.@linklist will give you all linked objects in the model. In your case, that is the list of equations.
Follow us on Twitter @IHSEViews

Phil09
Posts: 12
Joined: Fri Mar 17, 2017 11:10 am

Re: Equation access in model

Postby Phil09 » Tue Mar 19, 2019 4:54 pm

How do I return a text string containing names of equations in model.@linklist?

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

Re: Equation access in model

Postby EViews Gareth » Tue Mar 19, 2019 4:55 pm

Not sure I understand, but:

Code: Select all

mystring = mymodel.@linklist
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 63 guests