Statalist The Stata Listserver


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

st: Variable dropped from regression: how to capture event?


From   Friedrich Huebler <huebler@rocketmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Variable dropped from regression: how to capture event?
Date   Fri, 17 Nov 2006 14:51:36 -0800 (PST)

I am running a loop of regressions that should only be completed when
all variables are included. In case a variable is dropped I want to
skip the rest of the loop and continue with the next regression.

Example:

. logit foobar foo bar

note: foo != 0 predicts success perfectly
      foo dropped and 99 obs not used

The regression still runs, but with an incomplete set of variables.
How can I check whether a variable was dropped? For example, does
Stata create a return code in such a case? I use Stata 8.2.

Thanks,

Friedrich




 
____________________________________________________________________________________
Sponsored Link

Compare mortgage rates for today. 
Get up to 5 free quotes. 
Www2.nextag.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index