Richard A. Williams 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.
Kit Baum replied:
> Modifying the routine to do a preserve at the top and restore at the
> bottom would be a cleaner solution.
Unfortunately, Kit's solution didn't work. I tried it with my own dataset,
running an -xtgls- model of Nationalist voting in Scotland and Wales.
Naturally enough, calling -hetgrot- knocked out the English cases!
I think I'll admit defeat here and simply use -clear-.
CLIVE NICHOLAS |t: 0(44)191 222 5969
Politics Building |e: [email protected]
School of Geography, |f: 0(44)870 126 2421
Politics & Sociology |
University of |
Newcastle-upon-Tyne |
Newcastle-upon-Tyne |
NE1 7RU |
United Kingdom |http://www.ncl.ac.uk/geps
*
* 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/