Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Modify estimation results


From   "Neil Shephard" <[email protected]>
To   [email protected]
Subject   Re: st: Modify estimation results
Date   Fri, 27 Jul 2007 08:57:56 +0100

On 7/27/07, Hendri Adriaens <[email protected]> wrote:
> Hello,
>
> I would like to know if it is possible to modify estimation results when
> storing them in memory. I do for instance:
> sysuse auto
> regress price mpg weight
> estimates store temp
> estout temp using c:\results.txt, cells("b se t p") replace
>
> But I would like the results.txt to contain another line, with some
> arbitrary text, for instance a comment. It exports something like:
>
>         temp
>         b       se      t       p
> mpg     -49.51222       86.15604        -.5746808       .5673237
> weight  1.746559        .6413538        2.723238        .0081298
> _cons   1946.069        3597.05 .541018 .5901886
>
> But I would be able to write
>
>         temp
> % This is a test model
>         b       se      t       p
> mpg     -49.51222       86.15604        -.5746808       .5673237
> weight  1.746559        .6413538        2.723238        .0081298
> _cons   1946.069        3597.05 .541018 .5901886
>
> Would it be possible? And how?

Not quite in the position you want it, but you could use the -title()-
option to estout to add the required text...

sysuse auto
regress price mpg weight
estimates store temp
estout temp using c:\results.txt, cells("b se t p") replace style(tab)
title("%This is a test model")

Neil


-- 
"In mathematics you don't understand things. You just get used to
them."  - Johann von Neumann

Email - [email protected] / [email protected]
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/
*
*   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