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: Random date generation


From   "sasso, simone" <[email protected]>
To   statalist <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index