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

st: Re: dropping cases in hetgrot


From   Kit Baum <baum@bc.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: dropping cases in hetgrot
Date   Wed, 10 Mar 2004 16:09:49 -0500

On Mar 9, 2004, at 2:33 AM, Richard wrote:

This part of the code would seem to be the obvious candidate:

drop if e(sample)==0
If this is the culprit and you don't want the cases dropped, either (a)
rewrite the code using if statements to always select those cases in
e(sample), or (b) just reopen your data set at the end.
Modifying the routine to do a preserve at the top and restore at the bottom would be a cleaner solution.

Kit

*
* 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