[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Eliminating patterns from Panel Data

From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Eliminating patterns from Panel Data
Date   Sat, 19 Jan 2008 17:17:12 +0000 (GMT)

--- Martin Weiss <[email protected]> wrote:
> I wanted to ask how I can eliminate individuals from a panel that
> have missings for certain years. The xtdescribe command gives me the
> patterns, and I want to drop those individuals that have a pattern
> with dots in it (like 1.11..). 

Here is a not very elegant solution:

*--------- begin example -----------------------
webuse nlswork, clear
gen nofill = 1
fillin idcode year
bys idcode (nofill) : gen filled = missing(nofill[_N])
tab filled
drop if filled
*------------- end example ----------------------
(For more on how to use examples I sent to the Statalist, see )

Hope this helps,

Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

Sent from Yahoo! Mail - a smarter inbox

*   For searches and help try:

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