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

From |
Babak Oskooei <babak_cho@yahoo.com> |

To |
statalist@hsphsun2.harvard.edu |

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

Date |
Fri, 20 Nov 2009 06:29:41 -0800 (PST) |

Dear Mike, This is exactly what I was looking for. Many thanks to you and others for the comments. Babak --- On Thu, 11/19/09, Michael Hanson <mshanson@mac.com> wrote: > From: Michael Hanson <mshanson@mac.com> > Subject: Re: st: RE: Re: How can commands be suppressed in the results window > To: statalist@hsphsun2.harvard.edu > Date: Thursday, November 19, 2009, 9:32 PM > 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:*Michael Hanson <mshanson@mac.com>

- Prev by Date:
**Re: st: overlaying two histograms (or distribution curves)** - Next by Date:
**st: New package -sortl- on SSC** - Previous by thread:
**Re: st: RE: Re: How can commands be suppressed in the results window** - Next by thread:
**RE: 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 |