Referring to Coefficients in Formula

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

kcaron
Posts: 101
Joined: Wed Mar 04, 2015 11:46 am

Referring to Coefficients in Formula

Postby kcaron » Sun Nov 22, 2015 5:22 pm

These are the coefficients, etc. from my regression which is stored in a formula called eq_w5000:

Variable Coefficient Std. Error t-Statistic Prob.

WLCG_CHG 0.423255 0.006219 68.05481 0.0000
WLCV_CHG 0.419821 0.005770 72.76378 0.0000
WMCG_CHG -0.006387 0.009334 -0.684326 0.4944
WMCV_CHG 0.033822 0.009755 3.467210 0.0006
WSCG_CHG 0.097678 0.009038 10.80758 0.0000
WSCV_CHG 0.024521 0.009670 2.535750 0.0118
C -6.03E-05 3.21E-05 -1.879565 0.0613

This is a formula I use which references the coefficients...

w5000_exsmall = eq_w5000.c(1) * wlcg_chg + eq_w5000.c(2) * wlcv_chg + eq_w5000.c(7)

Instead of referring to the coefficients by a number (ie. ".c(1)") is there a way to refer to them by name (ie. c.(WLCG_CHG))? I can't seem to get that to work... I'm afraid I might get numbers mixed up as things get more complicated.

Thanks!

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

Re: Referring to Coefficients in Formula

Postby EViews Gareth » Sun Nov 22, 2015 7:55 pm

No, there is not.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Referring to Coefficients in Formula

Postby startz » Mon Nov 23, 2015 6:49 am

What you can do is create coefficient vectors with easy to remember names and use them instead of the C vector.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest