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: generating year for a given age


From   Debs Majumdar <[email protected]>
To   [email protected]
Subject   st: generating year for a given age
Date   Tue, 4 May 2010 13:38:23 -0700 (PDT)

Hi,

   I have a dataset  where I have the date of interview and the corresponding age at that time (age_bl). I want to create two variables of of this: 1) date of birth and 2) year when age was 40 for the participants.

      | id     dateint       age_bl   |
      |--------------------------------------|
  1. |  1    7242003   81.00753  |
  2. |  2    6132003   89.99042  |
  3. |  3    4222004   84.70363  |
  4. |  4   10192005   71.01163 |
  5. |  5    9042003   65.36345  |
     +-------------------------------------+


  How would I do that?
  
  Thanks,
  
   Debs



      

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