Hi.
I have a few lines of commands which are repeated after each regression. They save the details of the regression for further tabulating of the results. I have a lot of regressions and in many cases the post estimate commands are exactly the same. Now I wonder if there is a way to save these lines as macro (local/global) variables and just use the name of the variables to call the commands. I know how to save the commands in a separate do-file and call the do-file in the main program, but I'd rather not to have separate do-files just for a few lines of commands.
Example:
logit .....
eststo reg`i'
estadd local ind_fe "Yes"
estadd local municip_fe "Yes"
estadd local year_fe "Yes"
estadd local ind_year_fe "No"
....
(These are the lines to be added to the footnote of the regression tables regarding the dummies and fixed effects included)
Thanks in advance,
Fatima
I have a few lines of commands which are repeated after each regression. They save the details of the regression for further tabulating of the results. I have a lot of regressions and in many cases the post estimate commands are exactly the same. Now I wonder if there is a way to save these lines as macro (local/global) variables and just use the name of the variables to call the commands. I know how to save the commands in a separate do-file and call the do-file in the main program, but I'd rather not to have separate do-files just for a few lines of commands.
Example:
logit .....
eststo reg`i'
estadd local ind_fe "Yes"
estadd local municip_fe "Yes"
estadd local year_fe "Yes"
estadd local ind_year_fe "No"
....
(These are the lines to be added to the footnote of the regression tables regarding the dummies and fixed effects included)
Thanks in advance,
Fatima
Comment