--- "Cassio M. Turra" <[email protected]> wrote:
> Hi, I need to generate random numbers from a discrete probability
> distribution (drawn from a life table). Does anyone know how I can do
> it in Stata?
You are not very specific, so it is hard to give a specific answer.
This post http://www.stata.com/statalist/archive/2007-04/msg00906.html
gives a general description on how to draw from a dichotomous
distribution and is easily generalized to other discrete distributions.
Hope this helps,
Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
___________________________________________________________
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
*
* 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/