Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: Random number generator


From   "Silcocks Paul" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: Random number generator
Date   Thu, 23 Aug 2007 11:26:22 +0100

My understanding is that this method is fast, passes appropriate tests
and has a huge period (2^19937 -1), much greater than Stata's KISS 
generator. 

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]
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nick Cox
Sent: 23 August 2007 09:22
To: [email protected]
Subject: st: RE: Random number generator

Why do you feel there is a need for a new version of -uniform()-? 

Nick
[email protected] 

Paul Silcocks BM BCh, MSc, FRCPath, FFPH, CStat

> 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).
 

*
*   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/

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index