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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: RE: Re: How can commands be suppressed in the results window |

Date |
Fri, 20 Nov 2009 17:05:59 +0100 |

<> Re Michael`s -log- command: This will only work for Stata users who do not customarily keep a log of everything they do, started by the -profile.do-. For the others, you have to add the -name()- option to the -log- command to make this work... HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Michael Hanson Sent: Freitag, 20. November 2009 03:33 To: statalist@hsphsun2.harvard.edu Subject: Re: st: RE: Re: How can commands be suppressed in the results window I'm a little surprised by some of the more complex answers given on this thread -- perhaps I am misunderstanding what looks to be a fairly simple question. Babak: Martin's suggestion to use -quietly- seems to me to be one half of the solution you seek. The other half is its counterpart, -noisily-: // Begin example quietly { log using quiet_noise.log, text replace sysuse auto noisily: regress price mpg foreign log close } // End example Note that only the results of the -regress- command are displayed, and not the call to the -regress- command itself. Is that something like what you are looking for? Note also that if you look at the file "quiet_noise.log" with a plain text editor, you'll see that it only contains the results of the commands you precede with -noisily:- . This log file might be more useful for you than (say) copying and pasting from the Results window, should you have some post-processing of the output in mind. Using - estout- or a similar command is arguably an even better way to control what you output and how it looks, especially for inclusion in professional documents. Hope this helps, Mike On Nov 18, 2009, at 9:09 AM, Babak Oskooei wrote: > Thanks Martin, I probably did not clearly express my question. I do > want to have the output, but I would like to suppress the command > that generated the output from appearing in the results window. > > I hope this clarifies my question. > > Babak > > --- On Wed, 11/18/09, Martin Weiss <martin.weiss1@gmx.de> wrote: > >> From: Martin Weiss <martin.weiss1@gmx.de> >> Subject: st: RE: Re: How can commands be suppressed in the results >> window >> To: statalist@hsphsun2.harvard.edu >> Date: Wednesday, November 18, 2009, 9:03 AM >> >> >> You can put curly braces around the block of commands whose >> output you do >> not wish to see: >> >> qui{ >> //no output for commands here >> } * * 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/ * * 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/

**References**:**Re: st: RE: Re: How can commands be suppressed in the results window***From:*Babak Oskooei <babak_cho@yahoo.com>

**Re: st: RE: Re: How can commands be suppressed in the results window***From:*Michael Hanson <mshanson@mac.com>

- Prev by Date:
**Re: st: overlaying two histograms (or distribution curves)** - Next by Date:
**RE: RE: RE: st: RE: problems on the string functions** - Previous by thread:
**Re: st: RE: Re: How can commands be suppressed in the results window** - Next by thread:
**st: RE: Re: How can commands be suppressed in the results window** - Index(es):

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