Statalist


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

st: keep variables


From   [email protected]
To   [email protected]
Subject   st: keep variables
Date   Tue, 08 Jan 2008 11:24:44 +0100

Dear Statalist,
I have a simple and stupid problem to selection some variables, but I don't know as to resolve this problem:
I have this dataset
id analt episodi
1 1999 1
1 2002 2
2 2002 1
2 2003 2
2 2003 3
3 2004 1
3 2005 2


I want to selection all the id that analt>2001 & the first episodi start with ==1, so I want to take id 2 and id 3
id analt episodi
2 2002 1
2 2002 2
3 2004 1
3 2005 2

How can I do this?
Thanks a lot.


Catia


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