Statalist


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

st: RE: How to drop observations that fulfill a specific criterion


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: How to drop observations that fulfill a specific criterion
Date   Wed, 6 Aug 2008 15:45:04 +0100

I guess that you have a numeric variable showing daily dates and with a
specific date format. If so

drop if whatever < mdy(1,1,2000) 

is one way to do it. 

Nick
n.j.cox@durham.ac.uk 

Diana Eastman

I have a variable called fourwk_ending that has the following format:
05DEC1998. I need to drop all the observations before 2000, i.e.
anything before 01JAN2000. Does anyone have any idea how to set up this
conditional?


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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