Bookmark and Share

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

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

Re: st: generating age using dates

From   Maarten buis <>
Subject   Re: st: generating age using dates
Date   Fri, 17 Dec 2010 17:27:20 +0000 (GMT)

--- On Fri, 17/12/10, martine etienne wrote:
> the dates look pretty normally distributed, 

It is not the shape of the distribution that is
relevant but the actual values. We cannot look at
them, and we don't know anything about your data,
but you should know the context and be able to 
look at these values and see if they are plausable.

> both variables are long format:
> survey_date 
>    long   %dD_m_Y   
> q1_dob2     
>    long   %td   

When storing dates, that is done in years or weeks 
or quarters or... since some fixed date. You need to 
make sure that both variables use the same unit. The 
fact that one variable is in %dD_m_Y  and the other 
in %td suggest that this might be the problem. Take a 
look at the exact numerical values of these variables
(i.e. not the dates but the numbers).

Look at -help dates- for different conversion tools
to move one date type to another.

Hope this helps,

Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen


*   For searches and help try:

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