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

Re: st: RE: Asking Stata to ignore "no observations" when runningregressions


From   David Kantor <[email protected]>
To   [email protected]
Subject   Re: st: RE: Asking Stata to ignore "no observations" when runningregressions
Date   Thu, 27 Jan 2005 12:04:09 -0500

At 01:49 PM 1/27/2005 +0000, Nick Cox wrote:
Check out

        capture
        _rc

and various FAQs, including

http://www.stata.com/support/faqs/data/foreach.html

In fact, you might start with that FAQ.

More generally, there is much in the FAQs and
the Stata Journal that provides guidance in
this territory.

Nick
[email protected]
[...]
I might add that in the situation described, a useful way to use -capture- is with -noisily-, as in...
capture noisily ...your_command...

That way, if the command succeeds, you see the output. Otherwise, -capture- suppresses output.
-- David


David Kantor
Institute for Policy Studies
Johns Hopkins University
[email protected]
410-516-5404
*
* 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