Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Can a non-programmer permanently save the results of estimation?


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: Re: Can a non-programmer permanently save the results of estimation?
Date   Sun, 16 Nov 2003 15:31:04 +0000

At 18:37 14/11/03 -0500, Michael Blasnik wrote:
I've put togther an ado file that I think does this -- it saves all of the
macros, scalars, and matrices from the last estimation command (in a special
dataset) and allows you to retrieve them in future Stata sessions --
essentially what -estimates store- does for a single session.

I haven't tested it extensively and so would offer it to any beta-testers
interested.  If it seems to do what you want, then maybe I will submit it to
SSC.  It's called -estsave- and has a simple syntax (you're either
using(filename) or saving(filename).  You need to specify a unique id
variable when savings results so that it can put e(sample) back in place
when retrieved.  The dataset it saves only contains one variable (the ID
variable for the estimation sample only) and then saves everything else
using characteristics.  I think it works...
I for one would like a copy of -estsave-. I am definitely curious to find out just how -estsave- saves matrices and scalars in characteristics.

Best wishes

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index