Statalist


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

Re: st: dates


From   "Michael Blasnik" <michael.blasnik@verizon.net>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: dates
Date   Fri, 17 Aug 2007 17:54:51 -0400

...
I think you misunderstand the problem, there appear to be no observations that meet the criteria if year(exitdate)==2006

M Blasnik

----- Original Message ----- From: "Elizabeth Rainwater" <erainwat@sfbrgenetics.org>
To: <statalist@hsphsun2.harvard.edu>
Sent: Friday, August 17, 2007 5:29 PM
Subject: Re: st: dates



Couldn't you just do

replace exitdate=16801 if year(exitdate)==2006

It works for me:
. format junk %dD_m_Y

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index