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]

Re: st: generating age using dates


From   Neil Shephard <nshephard@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: generating age using dates
Date   Fri, 17 Dec 2010 15:49:25 +0000

On Fri, Dec 17, 2010 at 3:26 PM, martine etienne <martieluvsu@yahoo.com> wrote:
> Hi Statlisters,
> I am trying to generate age using the following variables:
>
> "survey_date"=survey date
>
> "q1_dob2"=date of birth

What format are these stored as?

-des survey_date q1_dob2-

>
> I started with the following command:
> gen nage= survey_date- q1_dob2
> gen age= nage/365.4
> but I'm stuck at this point because it looks like the numbers are very similar
> to each other,

What does "very similar" mean?  If you could post the output of -des
nage age- would go some way to explaining that.

> ie..I have a sample of 287 and over 200 are 50 plus....

Why is that surprising?  What is the study design?  If it was to
survey people > ~45 then this wouldn't surprise me at all!

Neil


-- 
"Our civilization would be pitifully immature without the intellectual
revolution led by Darwin" - Motoo Kimura, The Neutral Theory of
Molecular Evolution

Email - nshephard@gmail.com
Website - http://kimura-no-ip.org/
Photos - http://www.flickr.com/photos/slackline/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index