Exporting Tables with the name of the variables
Posted: Mon Mar 12, 2018 7:43 am
Consider the following problem:
1) assume that you have 100 exogenous variables X(t), where = 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?
1) assume that you have 100 exogenous variables X(t), where = 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?