Page 1 of 1

Assigning equation regressors to variables

Posted: Mon Mar 17, 2014 5:19 am
by mectricsdonk
Dear Eviews forum,

version: Eviews8

I was wondering if it is possible to assign the regressors of an existing equation to variables in a program?

For example, let equation1 be: y c x1 x2.

In the program I would like to assign x1 and x2 to %regressor1 and %regressor2. I want to make the program more dynamical instead of manually entering all regressors of the equation.

Cheers,
:eviews6:

Re: Assigning equation regressors to variables

Posted: Mon Mar 17, 2014 5:23 am
by mectricsdonk
ps: one could argue to just copy and past the regressors in the @uidialog("edit",%regs,"enter regressors"), but this has a limited amount of characters the user can put in. The models I create contain a lot of variables (with proper labelling to be clear of what is what), so this option is not feasible unfortunately.

Re: Assigning equation regressors to variables

Posted: Mon Mar 17, 2014 6:28 am
by mectricsdonk
Found it! I was looking for

!result = @uidialog("edit", %eq, "enter model1")
%vars={%eq}.@varlist

Cheers,
:mrgreen:

Re: Assigning equation regressors to variables

Posted: Mon Mar 17, 2014 6:55 am
by EViews Gareth
Note that @varlist contains the dependent variable too, so you'll need to lop off the first word.