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:
Assigning equation regressors to variables
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
mectricsdonk
- Posts: 29
- Joined: Fri Oct 01, 2010 2:51 pm
Assigning equation regressors to variables
Last edited by mectricsdonk on Mon Mar 17, 2014 5:24 am, edited 1 time in total.
-
mectricsdonk
- Posts: 29
- Joined: Fri Oct 01, 2010 2:51 pm
Re: Assigning equation regressors to variables
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.
-
mectricsdonk
- Posts: 29
- Joined: Fri Oct 01, 2010 2:51 pm
Re: Assigning equation regressors to variables
Found it! I was looking for
!result = @uidialog("edit", %eq, "enter model1")
%vars={%eq}.@varlist
Cheers,

!result = @uidialog("edit", %eq, "enter model1")
%vars={%eq}.@varlist
Cheers,
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Assigning equation regressors to variables
Note that @varlist contains the dependent variable too, so you'll need to lop off the first word.
Who is online
Users browsing this forum: No registered users and 1 guest
