Page 1 of 1

Grabbing Variable Names

Posted: Tue Mar 04, 2014 9:48 am
by Davidth
I am curious if there is a way to grab each independent variable name separately from an regression equation output. I am running several models with time lags and am having the results captured in a table to quickly examine all of them as a group as opposed to comparing each one individually. I have been able to get the coefficients and p-values for the dependent variables, but I can't seem to find a way to capture the names of the dependent variable and independent variables. As the equation changes each time I do a comparison or add data, I would like the system to recognize there are now 4 instead of 5 variables, and apply those new variable names to the table.

I'm using Eviews 8.

Re: Grabbing Variable Names

Posted: Tue Mar 04, 2014 10:10 am
by EViews Gareth
equation.@varlist.

You should take a look at the source code for the eqtabs add-in. Probably has a lot of stuff similar to what you're trying to do.

Re: Grabbing Variable Names

Posted: Tue Mar 04, 2014 11:07 am
by Davidth
Thanks, I'll check that out.

I've been using the @varlist currently, but was hoping there was something allowing me to pull out each variable independently, something like @varlist(i).

I'll look into the eqtabs. Thanks again.

Re: Grabbing Variable Names

Posted: Tue Mar 04, 2014 11:10 am
by EViews Gareth
@word(@varlist, !i)

Re: Grabbing Variable Names

Posted: Tue Mar 04, 2014 11:21 am
by Davidth
I'll try this.

By the way, that EqTabs addin is awesome, almost exactly what I need. Thanks for pointing me in that direction.