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/