Has anyone found a way of incorporating the Mersenne Twister
pseudo-random number generator into Stata? There is freeware C++ code at
http://www.bedaux.net/mtrand/ but I'm not clear how this could be
adapted into an ado file. What would be nice would be a new version of
uniform(). Stata technical support recommend using Mata as it is closer
in syntax to C++ than the Stata ado language (though this doesn't help
me much as I've not got to grips with Mata).
Paul Silcocks BM BCh, MSc, FRCPath, FFPH, CStat Clinical Senior Lecturer
Nottingham Clinical Trials Support Unit
Room B39
School of Community Health Sciences
University of Nottingham Medical School
Nottingham
NG7 2UH
tel +44 115 9515151 x 30514
Direct line: +44 115 8230505.
General office: +44 115 8230500
fax +44 115 8230515
e-mail [email protected]
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/