Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: storing estimates from nestreg


From   Richard Williams <richardwilliams.ndu@gmail.com>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: storing estimates from nestreg
Date   Thu, 21 Jul 2011 10:42:33 -0500

At 09:17 AM 7/21/2011, Doug Hess wrote:
Thanks! That worked.

Can the nestreg function store the various e-class estimates for each
model? When I issue -est restore- for one of the earlier models that
ran in the nestreg routine and then issue -ereturn list- the scalars
and macros returned are all from the last model in the nestreg blocks,
not the model I restored. My final goal was to run nestreg and then
run outreg to put the results into excel using the -addstat- option to
include more info for each model in the output. Or do I just have to
run each model and use scalars to get those stored one by one.

Thanks, again.

It works fine for me. Are you sure you don't have a mistake? Try this:

clear all
webuse auto
nestreg, store(m): reg price mpg weight foreign
est restore m1
ereturn list
estimates table m1 m2 m3



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index