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

Re: st: Re: restricting the sample


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: Re: restricting the sample
Date   Fri, 8 Oct 2004 03:00:02 +0100 (BST)

Kit Baum replied:

[...]

> In response to Clive's proposed solution, anything that _depends_ on
> observation numbers is IMHO a Very Bad Idea. All too easy to change
> those without realising it. Better to create
>
> gen byte zap = inlist(_n,10,100,250)
> reg whatever if !zap
>
> (for inlist(), Yet Another Useful Function that one uses with generate,
> whelp progfun)

Thanks for this, Kit. :)

CLIVE NICHOLAS        |t: 0(044)191 222 5969
Politics              |e: [email protected]
Newcastle University  |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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index