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 12:00:49 +0100

On 7/27/07, Hendri Adriaens <[email protected]> wrote:
> Hi Neil,
>
> > 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")
>
> Thanks for the idea, but it is indeed not exactly the place where I want it,
> but it might work (I need to read results back into a program I wrote). But
> actually, I should be able to insert multiple lines. Sorry I forgot to
> mention that in the example, I think of it now. Would that be possible with
> the title?

There are a number of options for adding text to -estout- output.

Probably the best option is to read -man estout- with particular
reference to the "Labelling" section.

You will probably find that as opposed to the -title()- option I
suggested that the -prehead()- or -posthead()- options are of more
use.

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

This gives you two lines, but again prior to the name you saved the
estimates as, and it would be extensible to multiple lines (seperating
lines when using -title()- didn't split them in the output, but does
with -prehead()-).

The best option is to read the online -help estout-.  You may also
find the following page by the author useful
http://fmwww.bc.edu/repec/bocode/e/estout/

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