How to store series names in a table ?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

PARobert
Posts: 2
Joined: Tue Jun 28, 2016 12:27 pm

How to store series names in a table ?

Postby PARobert » Thu Jun 30, 2016 9:15 am

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.

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

Re: How to store series names in a table ?

Postby EViews Gareth » Thu Jun 30, 2016 9:21 am

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

PARobert
Posts: 2
Joined: Tue Jun 28, 2016 12:27 pm

Re: How to store series names in a table ?

Postby PARobert » Thu Jun 30, 2016 9:29 am

I precise that I use Eviews 8.

I have coefficients, but not series names.

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

Re: How to store series names in a table ?

Postby EViews Gareth » Thu Jun 30, 2016 11:08 am

Works for me in 8 too.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests