Page 1 of 1

How to store series names in a table ?

Posted: Thu Jun 30, 2016 9:15 am
by PARobert
Hello,

After a regression I would like to keep regression coefficients in a table like: VarName Coeff. I tried the following code, but it do not store variable names.

Code: Select all

' I initialize an equation and a group equation eq group args VI1 VI2 VI3 ' I initialize the table table result result(1,1) = "Variables" result(1,2) = "Coeff" ' The regression eq.ls VD args ' I store coefficients for !i=1 to args.@count result(1+!i, 1) = args.@seriesname(!i) result(1+!i, 2) = c(!i) next
Have you got an idea to help me ?

P.-A.

Re: How to store series names in a table ?

Posted: Thu Jun 30, 2016 9:21 am
by EViews Gareth
Works for me.

Code: Select all

wfcreate u 100 series vi1=nrnd series vi2=nrnd series vi3=nrnd series vd = nrnd ' I initialize an equation and a group equation eq group args VI1 VI2 VI3 ' I initialize the table table result result(1,1) = "Variables" result(1,2) = "Coeff" ' The regression eq.ls VD args ' I store coefficients for !i=1 to args.@count result(1+!i, 1) = args.@seriesname(!i) result(1+!i, 2) = c(!i) next show result

Re: How to store series names in a table ?

Posted: Thu Jun 30, 2016 9:29 am
by PARobert
I precise that I use Eviews 8.

I have coefficients, but not series names.

Re: How to store series names in a table ?

Posted: Thu Jun 30, 2016 11:08 am
by EViews Gareth
Works for me in 8 too.