Statalist


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

AW: st: Eliminating patterns from Panel Data


From   Martin Weiss <[email protected]>
To   [email protected]
Subject   AW: st: Eliminating patterns from Panel Data
Date   Sat, 19 Jan 2008 19:39:41 +0100

Thanks Maarten for the immediate reply, StataCorp might wanna consider
adding a command for this problem... Could be something like the
"duplicates"-handling...

-----Urspr�ngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Maarten buis
Gesendet: Samstag, 19. Januar 2008 18:17
An: [email protected]
Betreff: Re: st: Eliminating patterns from Panel Data

--- 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
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )

Hope this helps,
Maarten

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

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com

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




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