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

Re: st: Re: dropping cases in hetgrot


From   "Clive Nicholas" <Clive.Nicholas@newcastle.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: dropping cases in hetgrot
Date   Wed, 10 Mar 2004 23:28:37 -0000 (GMT)

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: clive.nicholas@ncl.ac.uk
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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index