Hi,
I am using Stata 15 and I am having trouble getting estimates of a series of regressions with Outreg2. I am storing the estimates for each regression, but when I run outreg2 all the estimates are replaced by those of the last regression.
Here is my code:
#levelsof year, local(lev)
foreach i of local lev {
reg lh lw lnlincr yoe pexp pexp3 p03 age3 nchild nchild6 i.prov, vce (robust)
estimates store m`i'
}
outreg2 [m2007 m2008 m2009 m2010 m2011 m2012 m2013 m2014 m2015 m2016 m2017] using "C:\XXXX\file.doc", stats(coef se) word replace #
Thanks in advance for your help,
David
Related Posts with Outreg2 after a loop
How to interpret non-standardised coefficients?Hi all, I am looking at the effect of gender inequality (measured by GII which is a 0 to 1 scale, w…
Education Calculation!Good Afternoon Everyone, I wonder if someone can help me to find a right command. I need to calcul…
Problem with delimitDear All, I have a master file from where I invoke other auxiliary files, the code being: Code: …
Should we winsorize the interaction variables ?I have two variable, a and b a is a normal vari b is a dummy ( 0 and 1) c = a*b c is for interation …
Whether to include squared terms with OLS or notHi all, I am running a regression on logged hourly pay and was wondering how to test whether I shou…
Subscribe to:
Post Comments (Atom)
0 Response to Outreg2 after a loop
Post a Comment