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

Re: st: Generating random variates


From   anirban basu <[email protected]>
To   [email protected]
Subject   Re: st: Generating random variates
Date   Thu, 22 Aug 2002 13:40:58 -0500 (CDT)

To clarify my previous email, I know that there is the rnd function in
Stata. But I wanted to use my own random numbers to generate these
distributions. For example, a gamma distrubtion can be generated as

gen gam1=invgammap(2.0,u1)

where I can specify "u1". Thanks,

Anirban


On Thu, 22 Aug 2002, anirban basu wrote:

> Hi all,
> 
> I was wondering if there is any easy way to generate random variates for
> Poisson, Negative Binomial and Inverse Gaussian distributions  where
> E(y) = mu = exp(xb) in Stata. Thanks,
> 
> Anirban
> 
> 
> ______________________________________
> ANIRBAN BASU
> Doctoral Student
> Harris School of Public Policy Studies
> University of Chicago
> ________________________________________________________________
> 
> 
> 
> *
> *   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/



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