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
Error message r(699)Hi there, I'm trying to install factortest and sortl. It has worked previously, but now when I sear…
Changing the Column Titles and adding notes using Outreg2I am trying to export a table of summary statistics using the following command: outreg2 using "res…
Panel data with three dependent variablesHi all, I am pretty basic with statistics, but already have some experience with Stata. In my curr…
Cutting out the appropriate end of the variables Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(quarter Dl…
Constructing real rate of return variableDear Community, I am trying to construct a real rate of return on a bond of 2 years to maturity. Th…
Subscribe to:
Post Comments (Atom)
0 Response to Outreg2 after a loop
Post a Comment