Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: generate age variable from year and month of birth and date of the survey


From   "Blais, Martin" <blais.martin@uqam.ca>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: generate age variable from year and month of birth and date of the survey
Date   Wed, 27 Mar 2013 22:55:41 -0400

Hello

I am not familiar with dates manipulation in Stata.

I need to create an age variable based on year and month of birth and =
date of the survey.

The three variables are :
bdaymonth (1-12)
bdayyear (yyyy)
timestamp (%tc; displaying 21mar2013 18:46:25)

Can anyone help?

Many thanks,
Martin


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index