@Varlist of equation

For questions regarding programming in the EViews programming language.

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

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

@Varlist of equation

Postby Katjes » Tue Jun 04, 2013 5:58 am

We try to identify the elements of each equation
however, if the equation is specified with the following:

Code: Select all

eq_Y.ls dlog(Y)=c(33)+c(34)*dlog(Y(-1)) eq_Y.@varlist
the results that we get is

Code: Select all

DLOG(Y) Y(-1) Y(-2)
Which is not our equation!!

When we define the equation by the following

Code: Select all

eq_Y.ls dlog(Y) c dlog(Y(-1)) eq_Y.@varlist
we get which is perfect

Code: Select all

DLOG(Y) C DLOG(Y(-1))
We now that @spec is also possible, but we need a list of variables of the equation without coefficients.

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

Re: @Varlist of equation

Postby EViews Gareth » Tue Jun 04, 2013 7:30 am

Unfortunately there isn't a way to do that.

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

Re: @Varlist of equation

Postby Katjes » Tue Jun 04, 2013 8:35 am

And what is the reason, why the @varlist command produces a wrong list?

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

Re: @Varlist of equation

Postby EViews Gareth » Tue Jun 04, 2013 10:05 am

@varlist doesn't produce a "wrong list". It produces a list of all of the variables on the right hand side of the equation, when the equation is specified by expression.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests