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
Germany
Fon: 0049-7071-2978184
Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130
Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131
SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jon Schwabish
Sent: Wednesday, February 20, 2008 3:03 AM
To: [email protected]
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.
Thanks,
jon
____________________________________________________________________________
________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
*
* 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/
*
* 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/