Statalist The Stata Listserver


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

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


From   Friedrich Huebler <huebler@rocketmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Variable dropped from regression: how to capture event?
Date   Mon, 20 Nov 2006 07:07:25 -0800 (PST)

Many thanks to all who responded to my question about a regression
within a loop. I had looked for a method to check if a variable was
dropped from the regression, in which case the remaining commands in
the current loop iteration should be skipped. Doing this via e(df_m)
seems to be the easiest solution. Taking the example in my original
post, I ended up with the code below.

logit foobar foo bar
if e(df_m)<2 {
  continue
}

Thanks again,

Friedrich






 
____________________________________________________________________________________
Sponsored Link

Don't quit your job - take classes online
www.Classesusa.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