Hello everyone, I hope all your good.
Look, I'm trying to make a result resume table for a paper, but I don't figure out the key of looping yet.
I have a four dataset (different length etc.. the are household surveys )
I wrote this code for Probit regressions
local i : dir "G:\publicaciones" files "*.dta"
foreach file in `i' {
use `file', clear
asdoc probit tabaco hombre pobre pobrextr originario /*
*/ trabestu urb_rur grupo9 grupo10 , nolog
}
And work because of the asdoc command store and organize the resume table pretty good in Word document.
But my problem is to store the same way (or using eststo command) the margins with some command like this.
eststo margin_1: margins, dydx(*) post
Please, somebody could help me to figure out the loop I need.
Thanks in advance.
Juan
Related Posts with loop across data-sets save margins and make a resume table
Format regression coefficients using file writeI am outputting non-standard tables to TeX and using file write following this example: https://gith…
-putpdf- with -tempfile-Dear All, I am puzzled why the putpdf command requires the output file name to have specifically th…
Maximum length of arguments passed to Stata in batch modeI'm calling Stata from PowerShell and want to pass some arguments for the do file to be run. The com…
fixed effects and and vce(robust) in poisson regressionHello everyone, I am aware that this is more of a statistical quuestino than a question on Stata but…
long format data, creating a new variable (loop)Dear Statalist, I have data in long format with observation year: 2000 to 2019, n=125 000. I have a …
Subscribe to:
Post Comments (Atom)
0 Response to loop across data-sets save margins and make a resume table
Post a Comment