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

Re: st: question about generating distributions (cauchy, poisson,chisq, etc)


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: question about generating distributions (cauchy, poisson,chisq, etc)
Date   Sun, 27 Feb 2005 11:32:28 +0900

Dana Chandler wrote:

I really like stata, but find it very difficult to generate variables
from various distributions except for the simple ones like the normal
and uniform.

I've consulted the reference manual, but it too isnt that helpful. I'd
be interested in generating chi square, poison, and cauchy densities.
Are there any programs or examples of do files that can do this?

Or is there a way to program in pdfs and then get distrubtions from that?

--------------------------------------------------------------------------------

Do you want to plot the probability (cumulative) density function or generate 
random data following the given distributions?  The former should be trivial.  
For generating random data from a variety of common and not-so-common 
distributions see Joe Hilbe's and Walter Linde-Zwirble's -rnd- suite or Bobby 
Gutierrez's -gendist- suite.  For Cauchy and other N/I distributions, see Peter 
Lachenbruch's -nirand-.  Be aware that the -rnd- suite was written several 
years ago, and it uses -set seed0-.

Joseph Coveney



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