regression - esttab with rename - How to Batch Rename -


i using esttab rename. have special situation in run multiple regressions each regression has coefficient different (similarly-named) variable, each corresponds same idea. thus, want display of these on same line opposed having each appear on own line.

here (very contrived) toy example:

sysuse auto, clear  rename weight mpg1 rename mpg mpg2 rename turn mpg3 

i want display results of 3 following regressions, have 1 line mpg1, mpg2, , mpg3 (instead of each 1 appearing on separate line). 1 way accomplish following:

eststo clear eststo: quietly reg price mpg1 eststo: quietly reg price mpg2 eststo: quietly reg price mpg3 esttab, rename(mpg1 mpg mpg2 mpg mpg3 mpg) 

my question if possible rename of variables @ same time doing such rename(mpg* mpg)? if want run large number of regressions, becomes more advantageous instead of writing them out hand. of course, using loop create macro accomplish this, avoid code possible.


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -