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

st: RE: exponential distribution

From   "Martin Weiss" <>
To   <>
Subject   st: RE: exponential distribution
Date   Wed, 20 Feb 2008 13:48:45 +0100

Well, at the end of the day, it is easy enough to call R with the
-shell-/-winexec- commands, generate with the rexp() command there and to
export with the foreign-package back to Stata. For this reason, I have never
bothered to look at Stata`s own commands: at the time, it also seemed
unclear to me why one would write things like "invnormal(uniform())" only to
generate normal random numbers. Seems horribly complicated...

Martin Weiss

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen

Fon: 0049-7071-2978184




-----Original Message-----
[] On Behalf Of Jon Schwabish
Sent: Wednesday, February 20, 2008 3:03 AM
Subject: st: exponential distribution

Does anyone know how to create an exponential
distribution with a mean of 1 to use as random
numbers? I believe it's a tweak on exp=-ln(uniform()),
but am not sure.


Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.

*   For searches and help try:

*   For searches and help try:

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