Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Nonuniform Random Variable Generation


From   "Jann Ben" <[email protected]>
To   <[email protected]>
Subject   st: Nonuniform Random Variable Generation
Date   Tue, 27 Sep 2005 00:24:30 +0200

Hi,

I would like to generate random variables with the density

  f(x) = 1/2 * (2x^2 + 4x + 1) * exp(-2x),  x>=0

Can anyone help me with this?

Many thanks in advance,
ben

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