Statalist


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

st: Aggregate date to calculate n months


From   "Ziad El-Khatib" <[email protected]>
To   [email protected]
Subject   st: Aggregate date to calculate n months
Date   Mon, 4 Aug 2008 08:11:32 -0700

Hi!
I entered dates of patients starting on treatment and date of their
interview under different variables:

startd (for day)
startm (for month)
starty (for year)

surveyd (for day)
surveym (month)
surveyy (year)

Now i want to calculate number of months patients have been on treatment.
I am finding problems in creating
start=startd+startm+starty
survey=surveyd+surveym+surveyy

period=survey-start

Any tips?

Thank you and best regards
ziad
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index