Importing text files into Excel Part II / Importar archivos de texto al Excel Parte II
español For those who find useful to transfer the output of their statistics and regressions to Excel, here is another macro that might be useful. As in the last case, imagine that you are dealing with many tables of statistics and regressions that you have computed with Stata, and you will find useful to take them all to Excel. Such a thing might be useful for visualization, comparing statistics (robustness checks), formatting the tables for presentations or publications, elaborating further graphics, and so on. Building on the macro presented in the previous post, this time I built another one to deal with importing multiple files simultaneously. To see how it works, imagine, as an example, that you have 5 key variables that you are analysing and for each of them you have produced 4 tables (corresponding, for example to different estimation methods) and exported each respectively to a text file. That gives a total of 20 tables to be imported from Excel. First, it might be useful to organize the text files information in a table in Excel as shown in the table below: Using the information in the previous table, the multipletextload macro will : i. Generate a new…