Statalist The Stata Listserver


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

st: perform Poisson simulations


From   Zhiqiang Feng <[email protected]>
To   [email protected]
Subject   st: perform Poisson simulations
Date   Wed, 26 Apr 2006 11:09:52 +0100

Dear all,

I try to do Poisson simulations using STATA.

Firstly I fit Poisson model with the observed values.

Poisson y x1, x2, ...xn

predict yhat, n.

The I try to derive Poisson random numbers using the predicted values as means.

y_random=??(yhat)

However, I can not find a way to derived Poisson random numbers in STATA. I do find a similar function in SAS (ranpoi) though. I also know there is such a function in GLIM.

I am grateful if someone could make some suggestions.

thanks,

zhiqiang

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