Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: a simple question

From   Ricardo Castro <>
Subject   st: a simple question
Date   Wed, 2 Feb 2011 10:13:14 -0500


I have a dataset with dates in Stata format. I need to create a
variable with the dates 2 days before the dates I have already.
I mean if I have 01Jan1999 I need to create a variable 30Dec1998, an
so on for all the dates, but haven't been able to write a useful code
for doing that.
Can you help me?

Many thanks!

Ricardo Castro MD

MMPH Program - Graduate School of Public Health
University of Pittsburgh
111 Parran Hall, 130 Desoto Street
Pittsburgh, PA 15261

Research Scholar
University of Pittsburgh Medical Center
Department of Critical Care Medicine
605 Scaife Hall, 3550 Terrace Street
Pittsburgh, PA 15261

Tel: +1 412 647 8319
Fax: +1 412 647 8060

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index