Peggy
you could try
replace exitdate = mdy(12,31,2005) if year(exitdate)==2006
Regards
Sebasrian
On 8/17/07, P chrisman <[email protected]> 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/