Statalist


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

Re: st: dates


From   "Sebastian F. Büchte" <sfbuechte@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: dates
Date   Fri, 17 Aug 2007 15:22:18 +0200

Peggy

you could try

replace exitdate = mdy(12,31,2005) if year(exitdate)==2006

Regards
Sebasrian

On 8/17/07, P chrisman <peggyc@u.washington.edu> wrote:
> Dear List,
>
> I have a variable "exitdate" that is the last clinic visit for each
> subject; it is formatted as %dD_m_Y_. I need to change all last visit
> dates recorded in 2006 to Dec 31, 2005. Any help would be greatly
> appreciated. Also if someone could point me towards a user friendly
> reference for survival analysis that would also be greatly appreciated.
> Thanks,
> peggy
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index