Bookmark and Share

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


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

st: date calculation


From   "DeMichele, Matthew" <[email protected]>
To   <[email protected]>
Subject   st: date calculation
Date   Mon, 10 Mar 2014 15:38:42 -0400

I have two date variables arranged as YYYYMM and YYYYYMMDD. The first
variable is date of birth and the second is date of admission to
treatment. I am trying to calculate age_at_admission, but am running
into trouble. Is this a possible calculation since Stata calculates
dates as days since 1,1,1960?

Thank you for your help. 

Matthew 


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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