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/