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
multiple criteria across several variablesHi there Sorry if this is really basic, but I want to flag every observation where both values 3 an…
Xtlogit vs Logit.Dear respected Members, I’m not professional in Stata. Sorry, Pls could anyone help and offer me an …
adding summary weight in metabolic scoreHi, I am trying to generate a metabolic syndrome score for the children aged 11 to 12 years using PC…
Out-of-Sample Prediction using Multinomial Logit ModelHi I have a question about the out-of-sample prediction using multinomial logit model. <Situatio…
2SLS on Panel DataHi guys! I'm using 2SLS on Panel Data, however when I calculate 2SLS manually, I mean, by doing: F…
Subscribe to:
Post Comments (Atom)
0 Response to Outreg2 after a loop
Post a Comment