Stata: Data Analysis and Statistical Software
Bookmark and Share


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

st: Random date generation


From   "sasso, simone" <sasso@merit.unu.edu>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Random date generation
Date   Wed, 16 Jan 2013 17:46:49 +0100

Hello,

 

I am currently working on a large dataset  and I need to generate a random date (in the format “yyyymmdd”) for each observation.  These random dates must be between the 1 December 1980 (“19801201”) and 31 December 2006 (“20061231”).

 

Do you have any suggestions?

Many thanks in advance for your help!

 

Simone

 



© Copyright 1996–2013 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index