Exporting Tables with the name of the variables

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

RDS
Posts: 63
Joined: Thu Feb 17, 2011 9:50 am

Exporting Tables with the name of the variables

Postby RDS » Mon Mar 12, 2018 7:43 am

Consider the following problem:
1) assume that you have 100 exogenous variables X[i](t), where [i] = 1, .....100
2) run regression of the endogenous variables y1 and y2 on each of the 100 X and save output in tables
3) export 2*100 tables

I would like to export the tables exactly with the name of the variables.

Specifically I would like to save the 200 tables as follows t_y1_x1, t_y1_x2, ... t_y1_x100 and t_y2_x1, t_y2_x2, ... t_y2_x100


Can you help?

EViews Matt
EViews Developer
Posts: 221
Joined: Thu Apr 25, 2013 7:48 pm

Re: Exporting Tables with the name of the variables

Postby EViews Matt » Mon Mar 12, 2018 9:46 am

Hello,

The following performs the estimations (customize to your needs) and create the tables. All you'd have to add is the specifics of how to you'd like the tables exported.

Code: Select all

for !i = 1 to 2
   for !j = 1 to 100
      equation eq.ls y!i x!j
      freeze(t_y!i_x!j) eq.results
   next
next


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 7 guests