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

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


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: Re: Can a non-programmer permanently save the results of estimation?
Date   Sun, 16 Nov 2003 12:37:20 -0500

I'll send estsave separately.  You may want to check out -mstore- which was
posted on SSC back in 2001.  -mstore- saves matrices with a dataset using
characteristics.  Essentially, each row of the matrix is stored as a single
characteristic.  Because characteristics are a text format, I use di %18.0g
as the format of each number to include all of the digits feasible.  Given
the limit of 67,784 characters, it can large matrices.  Other
characteristics are used to to hold row and column names.

Michael Blasnik
michael.blasnik@verizon.net


----- Original Message ----- 
From: "Roger Newson" <roger.newson@kcl.ac.uk>
To: <statalist@hsphsun2.harvard.edu>
Sent: Sunday, November 16, 2003 10:31 AM
Subject: st: Re: Can a non-programmer permanently save the results of
estimation?


> 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
>


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index