[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: perform Poisson simulations
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/