Page 1 of 1

Referring to Coefficients in Formula

Posted: Sun Nov 22, 2015 5:22 pm
by kcaron
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!

Re: Referring to Coefficients in Formula

Posted: Sun Nov 22, 2015 7:55 pm
by EViews Gareth
No, there is not.

Re: Referring to Coefficients in Formula

Posted: Mon Nov 23, 2015 6:49 am
by startz
What you can do is create coefficient vectors with easy to remember names and use them instead of the C vector.